VBA macro for renaming multiple operations
VBA macro for renaming multiple operations
(OP)
I am completely new to VBA but can anyone post code that will simply search the Operation Navigator for a specific piece of text, and then give me a dialog box where I can replace that text with whatever I want. Basically I have a bunch of operations that I need renamed but doing this manually would take an eternity. Any help would be great!





RE: VBA macro for renaming multiple operations
You can go to UGAnswer on ugs support web site and search for 'list operations'. You will find GTAC example showing you how to get the operation names. Tweak this code to achieve what you want.
Suresh
www.technisites.com.au
RE: VBA macro for renaming multiple operations
In NX 7.0, this is included in the sample applications.
Mark Rief
Product Manager
Siemens PLM
Mark Rief
Product Manager
Siemens PLM
RE: VBA macro for renaming multiple operations
RE: VBA macro for renaming multiple operations
RE: VBA macro for renaming multiple operations
RE: VBA macro for renaming multiple operations
RE: VBA macro for renaming multiple operations
Then run the program as stated before.
Mark Rief
Product Manager
Siemens PLM
RE: VBA macro for renaming multiple operations
RE: VBA macro for renaming multiple operations
RE: VBA macro for renaming multiple operations
A journal is just a basic vb program.
You can record and play journals - like super-macros. This is similar to vba in MS Office applications. If you do this a lot, turn on the Journal tool bar.
You can also write or edit a journal to do more advanced things like this one does. IT uses functions to ask for old and new text, cycle through all the selected objects, and rename them. This is where your vb class will help.
There are several examples in the installation in the folder UGOPEN/SampleNXOpenApplications.
That should be enough to get you going :*)
Mark Rief
Product Manager
Siemens PLM
RE: VBA macro for renaming multiple operations
Could you please give me some instructions about how to debug this code in NX when I try to add some new operations manaually in one recorded .vb file? Any comments will be appreciated,thanks.
Michael
Thanks