CR98
Mechanical
- Jul 15, 2018
- 5
Hi,
Running NX10 native.
I'm using the code from the dropbox link found in I've changed a few things regarding where it gets the file, but all functions have remained the same.
I've got a number of assemblies created, and a text file showing how they relate (think motorcycle, with an assembly for the ignition, engine, etc.) on my computer it's set up so there's a "motorcycle" folder containing folders inside for each additional assembly. Selecting the "motorcycle" folder as the main part folder (one of the first lines in the code), NX seems to find the top level part of each additional assembly contained in the sub folders (if I try to open the new one and the original one it will say a newer version is open), however none of its sub-components are added, just the top level part. The only way around this I've found is to open the assemblies prior to running the code, which brings up the question of how useful the Journal would be.
How can I can get NX to bring in all the parts associated with the top level part, being called out in the text file?
Another question I have is this: most, but not all, top level parts follow the naming of "pn ##### description" the number is usually 4-5 digits, but varies. Rather than making sure the name of the part and one the on the text file match completely, could I simply call out the number and have NX grab the part that matches, when applicable? The numbers are unique and only the top level parts have them, so duplicates shouldn't be an issue.
Thanks master Journalers!
Running NX10 native.
I'm using the code from the dropbox link found in I've changed a few things regarding where it gets the file, but all functions have remained the same.
I've got a number of assemblies created, and a text file showing how they relate (think motorcycle, with an assembly for the ignition, engine, etc.) on my computer it's set up so there's a "motorcycle" folder containing folders inside for each additional assembly. Selecting the "motorcycle" folder as the main part folder (one of the first lines in the code), NX seems to find the top level part of each additional assembly contained in the sub folders (if I try to open the new one and the original one it will say a newer version is open), however none of its sub-components are added, just the top level part. The only way around this I've found is to open the assemblies prior to running the code, which brings up the question of how useful the Journal would be.
How can I can get NX to bring in all the parts associated with the top level part, being called out in the text file?
Another question I have is this: most, but not all, top level parts follow the naming of "pn ##### description" the number is usually 4-5 digits, but varies. Rather than making sure the name of the part and one the on the text file match completely, could I simply call out the number and have NX grab the part that matches, when applicable? The numbers are unique and only the top level parts have them, so duplicates shouldn't be an issue.
Thanks master Journalers!