NX Journal - Creating a Specific BodyCollection
NX Journal - Creating a Specific BodyCollection
(OP)
Thanks Everyone, (especially Frank) whose been helping me with my "trial by fire" NX Journal programming.
Now I want to create a BodyCollection with specific bodies in it (not all the bodies in the part). I thought I could use BodyCollection.Add(newbody) to add a body, but it seems BodyCollection doesn't work that way. So how can I create a bodycollection (not just an array of tags - cause I still don't get how to convert those back to objects) which I can process later?
Thanks,
Jeff
Now I want to create a BodyCollection with specific bodies in it (not all the bodies in the part). I thought I could use BodyCollection.Add(newbody) to add a body, but it seems BodyCollection doesn't work that way. So how can I create a bodycollection (not just an array of tags - cause I still don't get how to convert those back to objects) which I can process later?
Thanks,
Jeff





RE: NX Journal - Creating a Specific BodyCollection
object = NXObjectManager.Get(objectTag)
here objecttag is the tag for the object. Note you must also include the necessary import
Imports NXOpen.Utilities
On the first question the most common programming method is to copy to an array from the original body collection those bodies that meet your specific requirements.
Frank Swinkels
RE: NX Journal - Creating a Specific BodyCollection
RE: NX Journal - Creating a Specific BodyCollection
Until the next one...
Jeff