FindManagerGetFunctionGroup Method |
Namespace: VIZCore3D.NET.Manager
public Dictionary<string, List<Node>> GetFunctionGroup( string apiKey )
// 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(); }