jmarkus
Mechanical
- Jul 11, 2001
- 377
Any NX VB.NET/Journal guru's can do the following?
1. Collect all the expressions in a part file in an array containing the name of each one as the contents of the array
2. Rename each "name" based on the position in the array (ie. p23464 is exp_array(0) and so becomes exp0 - using 'exp' instead of 'p' to avoid conflicts with existing expressions as it is going down the list.
Seems simple in concept, but I don't know about the implementation.
Ultimately I am trying to cleanup files which have had data imported into them resulting in expression names like p333'20'21'22'23'25'26'27.
(John Baker shared a Grip file which renumbers expressions in thread "NX - Renumber Expressions - Revisited", but can't handle the conflicts with duplicate names)
Thanks,
Jeff
1. Collect all the expressions in a part file in an array containing the name of each one as the contents of the array
2. Rename each "name" based on the position in the array (ie. p23464 is exp_array(0) and so becomes exp0 - using 'exp' instead of 'p' to avoid conflicts with existing expressions as it is going down the list.
Seems simple in concept, but I don't know about the implementation.
Ultimately I am trying to cleanup files which have had data imported into them resulting in expression names like p333'20'21'22'23'25'26'27.
(John Baker shared a Grip file which renumbers expressions in thread "NX - Renumber Expressions - Revisited", but can't handle the conflicts with duplicate names)
Thanks,
Jeff