Select components and get attributes
Select components and get attributes
(OP)
Hey guys/gals! I am trying to create a journal in NX 8.5 and I am working with ReUse Design Elements. I am guessing these are considered components. I am having trouble figuring out the VBA code to prompt the user to select multiple components and write them to a text file. Links to help or code examples? Thanks!





RE: Select components and get attributes
RE: Select components and get attributes
CODE --> Basic
Once you have the subset you can query it for Design Elements:
CODE --> Basic
Then you can loop through DesignElements() and process each one. For the most part they are treated as components when it comes to querying attributes.
Check the NXOpen API docs for the subset class to see other similar calls you can make like the one above.
Sorry I didn't lay out all of the code, but that should be enough to get you started.