Object3DManagerCopyNodeNameToClipboard Method |
Namespace: VIZCore3D.NET.Manager
public void CopyNodeNameToClipboard( Object3dFilter filter )
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { if (vizcore3d.Model.IsOpen() == false) return; // Case 1) vizcore3d.Object3D.CopyNodeNameToClipboard(VIZCore3D.NET.Data.Object3dFilter.SELECTED_PART); // Case 2) List<VIZCore3D.NET.Data.Node> nodes = vizcore3d.Object3D.FromFilter(VIZCore3D.NET.Data.Object3dFilter.SELECTED_PART); if (nodes.Count == 0) return; Clipboard.SetText(nodes[0].GetParentName()); }