Click or drag to resize

DisassemblyManagerAddGroup Method (Int32, Int32, Boolean)

Add Group

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public bool AddGroup(
	int groupId,
	int index,
	bool recursive = true
)

Parameters

groupId
Type: SystemInt32
그룹 아이디(ID). 0 ~
index
Type: SystemInt32
개체 인덱스(INDEX)
recursive (Optional)
Type: SystemBoolean
하위 노드 자동 그룹 지정

Return Value

Type: Boolean
추가 결과
Examples
C#
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void AddGroup()
{
    List<VIZCore3D.NET.Data.Node> child =
        vizcore3d.Object3D.GetChildObject3d(
            0 /* Root Node Index */
            , VIZCore3D.NET.Data.Object3DChildOption.CHILD_ONLY   /* Sub Node */
            );

    for (int i = 0; i < child.Count; i++)
    {
        bool result = vizcore3d.Object3D.Disassembly.AddGroup(
            i                   /* ID : 0 ~ */
            , child[i].Index    /* NODE INDEX */
            , true              /* Recursive */
            );
    }
}

private void ClearGroup()
{
    vizcore3d.Object3D.Disassembly.ClearGroup();
}
See Also