Apr 26, 2011 #1 vlholyoak Mechanical Joined Dec 30, 2009 Messages 2 Location US I am trying to get a user selected sketch to perform actions with using the c# api. How do you get the Sketch object just by the user selecting it interactively?
I am trying to get a user selected sketch to perform actions with using the c# api. How do you get the Sketch object just by the user selecting it interactively?
Apr 26, 2011 Thread starter #2 vlholyoak Mechanical Joined Dec 30, 2009 Messages 2 Location US You must first get the UI instance as follows: UI userint = NXOpen.UI.GetUI(); Then the userint object has functions that will allow you to get the selected objects such as: NXObject obj1 = userint.SelectionManager.GetSelectedObject(0); Upvote 0 Downvote
You must first get the UI instance as follows: UI userint = NXOpen.UI.GetUI(); Then the userint object has functions that will allow you to get the selected objects such as: NXObject obj1 = userint.SelectionManager.GetSelectedObject(0);