Click or drag to resize

Object3DManagerCopyNodes Method (Boolean)

선택된 노드 복사

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public Dictionary<int, int> CopyNodes(
	bool alert = false
)

Parameters

alert (Optional)
Type: SystemBoolean
사용자 확인 메시지 출력 여부

Return Value

Type: DictionaryInt32, Int32
복사된 노드 인덱스 - KEY : Selected Node Index, VALUE : New Node Index
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    Dictionary<int, int> items = vizcore3d.Object3D.CopyNodes();

    if (items.Count == 0)
    {
        MessageBox.Show("Node is null.", "VIZCore3D.NET", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        return;
    }

    foreach (KeyValuePair<int, int> item in items)
    {
        VIZCore3D.NET.Data.Node source = vizcore3d.Object3D.FromIndex(item.Key);
        VIZCore3D.NET.Data.Node target = vizcore3d.Object3D.FromIndex(item.Value);

        MessageBox.Show(
            string.Format(
                "{0} - {1}, {2} / {3}"
            , item.Key
            , item.Value
            , source.NodeName
            , target.NodeName
            )
            , "VIZCore3D.NET"
            , MessageBoxButtons.OK
            , MessageBoxIcon.Information
            );
    }
}
See Also