I've been working on this project at work that i'm having some trouble with. Basically, for the project, I have to move all the bodies in the work part to be in the positive quadrant of x, y, and z - that the point with the most negative x value, (-50, 10 , 10) , is now moved to, for example, (0, 10, 10), so that there are no bodies with any part/point being negative.
I tried recording the move body function and messing around with it to not much avail.
I would really appreciate any tips or ideas.
Solved! Go to Solution.
Why is this important?
Can't you just move the WCS so that the condition is satisfied?
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled
See the NXOpen.UF.UFModl.AskBoundingBox() methods:
These could be used to find out what the "most negative" point of the model is and thus how large the offset needs to be,
If you are working with an assembly, you might also look at UF_FLTR_ask_box_of_assy(), which "Returns the bounding box information for an assembly and all of the components in it, or for a particular component. The edges of the box are parallel to the axis of the absolute coordinate system. "
One important thing to be aware of - the minimum corner, directions, and distances are all outputs. The method is going to figure out what numbers those contain, you just have to be sure that you declare the right kind of variable to hold the numbers.
It is always a good idea to take a look at the Open C Reference Guide when you are trying to use one of the wrapper functions, so you can get the complete data on how the function/method works, and what the various parameters are.