public static Guid[] GetOpenPanelIds() { using (Runtime.InteropWrappers.SimpleArrayGuid ids = new Runtime.InteropWrappers.SimpleArrayGuid()) { IntPtr pIds = ids.NonConstPointer(); UnsafeNativeMethods.RHC_GetOpenTabIds(pIds); return(ids.ToArray()); } }
public Guid[] GetObjectIds() { using (Runtime.InteropWrappers.SimpleArrayGuid ids = new Runtime.InteropWrappers.SimpleArrayGuid()) { IntPtr ptr_const_this = ConstPointer(); IntPtr ptr_id_array = ids.NonConstPointer(); UnsafeNativeMethods.ON_InstanceDefinition_GetObjectIds(ptr_const_this, ptr_id_array); return(ids.ToArray()); } }
/// <summary> /// Will always return a empty array in Mac Rhino. In Windows Rhino it will /// look for any panel dock bars that contain the specified panel class Id and /// return the dock bar Id's. /// </summary> /// <param name="panelId"> /// Panel class Id for of the panel to look for. /// </param> /// <returns> /// Always returns Guid.Empty on Mac Rhino. On Windows Rhino it will /// return the Id for the dock bar which host the specified panel or /// Guid.Empty if the panel is not currently visible. /// </returns> /// <since>6.1</since> public static Guid[] PanelDockBars(Guid panelId) { // This won't be necessary Mac Rhino is ported to use the generic panel // interfaces using (var ids = new Runtime.InteropWrappers.SimpleArrayGuid()) { var pointer = ids.NonConstPointer(); UnsafeNativeMethods.CRhinoTabbedDockBarDialog_DockBarsForTab(RhinoDoc.ActiveDoc?.RuntimeSerialNumber ?? 0, panelId, pointer); return(ids.ToArray()); } }
/// <summary> /// Get a list of the currently open panel tabs in Windows Rhino, on Mac /// Rhino it will be a list of the currently visible modeless panel /// dialogs. /// </summary> /// <returns> /// Returns an array of panel class Id's for the currently open panels, /// if there are no open panels it will be an empty array. /// </returns> /// <since>5.0</since> public static Guid[] GetOpenPanelIds() { // This won't be necessary Mac Rhino is ported to use the generic panel // interfaces using (var ids = new Runtime.InteropWrappers.SimpleArrayGuid()) { var pointer = ids.NonConstPointer(); UnsafeNativeMethods.RHC_GetOpenTabIds(pointer); return(ids.ToArray()); } }
/// <summary> /// Returns a list of currently selected content item Id's to be edited. /// </summary> /// <returns>Returns a list of currently selected content item Id's to be edited.</returns> private Guid[] GetContentIdList() { using (var idList = new Runtime.InteropWrappers.SimpleArrayGuid()) { var pointerToIdList = idList.NonConstPointer(); var serialNumber = SerialNumber; UnsafeNativeMethods.Rdk_CoreContent_UiSectionConentIdList(serialNumber, ref m_SearchHint, pointerToIdList); return idList.ToArray(); } }
public static Guid[] GetOpenPanelIds() { using (Runtime.InteropWrappers.SimpleArrayGuid ids = new Runtime.InteropWrappers.SimpleArrayGuid()) { IntPtr pIds = ids.NonConstPointer(); UnsafeNativeMethods.RHC_GetOpenTabIds(pIds); return ids.ToArray(); } }
/// <summary> /// list of object ids in the instance geometry table /// </summary> /// <returns></returns> public Guid[] GetObjectIds() { using (Runtime.InteropWrappers.SimpleArrayGuid ids = new Runtime.InteropWrappers.SimpleArrayGuid()) { IntPtr ptr_const_this = ConstPointer(); IntPtr ptr_id_array = ids.NonConstPointer(); UnsafeNativeMethods.ON_InstanceDefinition_GetObjectIds(ptr_const_this, ptr_id_array); return ids.ToArray(); } }