Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easily cast work part as NXObject

Status
Not open for further replies.

lharrison

New member
Oct 19, 2011
52
I am trying to cast the current work part as an NXObject so i can quickly pass it to the UFSession.Modl.AskBoundingBoxExac() method. If i manually select my work part through a select dialog, it get back an NXObject ByRef that AskBoundingBox will accept.

I am trying to avoid manual selection by simply casting Session.Parts.Work as an NXObject, but AskBoundingBox will not accept this tag. I'm sure it is because I am not passing the workpart as a reference, but I cannot find a method to accomplish this(short of manual selection)

bruce
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor