Click or drag to resize

FindManagerGetFunctionGroup Method

유형별 모델 그룹핑 데이터 반환

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public Dictionary<string, List<Node>> GetFunctionGroup(
	string apiKey
)

Parameters

apiKey
Type: SystemString
커스텀 API KEY

Return Value

Type: DictionaryString, ListNode
유형별 모델 그룹핑 데이터
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    if (vizcore3d.Model.IsOpen() == false) return;

    Dictionary<string, List<VIZCore3D.NET.Data.Node>> items
        = vizcore3d.Object3D.Find.GetFunctionGroup(
            "898C4327-7A21-464F-BAC8-C0B731351DEE"   /* HHI MBOM 2020 */
            );

    // Case 1)
    foreach (KeyValuePair<string, List<VIZCore3D.NET.Data.Node>> item in items)
    {
        // Some code here...
    }

    // Case 2)
    List<VIZCore3D.NET.Data.Node> MACH_PIPE 
        = items.ContainsKey("MACH_PIPE") == true 
        ? items["MACH_PIPE"] 
        : new List<VIZCore3D.NET.Data.Node>();

    List<VIZCore3D.NET.Data.Node> HOFT_PIPE
        = items.ContainsKey("HOFT_PIPE") == true
        ? items["HOFT_PIPE"]
        : new List<VIZCore3D.NET.Data.Node>();

    vizcore3d.BeginUpdate();

    vizcore3d.View.XRay.Enable = true;
    vizcore3d.View.XRay.Clear();

    vizcore3d.View.XRay.Select(MACH_PIPE, true);
    vizcore3d.View.XRay.Select(HOFT_PIPE, true);

    vizcore3d.EndUpdate();
}
See Also