cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Mass rename in PDMLink 9.1

KlausHellweger
12-Amethyst

Mass rename in PDMLink 9.1

Does anyone have an idea how to do a mass rename in PDMLink 9.1. For example rename all CAD Objects in specific folder.


Thank's and regards


Klaus

4 REPLIES 4

Use SQL, or write a Java Program. In general, for mass renaming, we
usually write an SQL script.

Al Anderson



Klaus,


I'd do this with either Java or better yet an info*engine task composed of a fewwebjects.


If you are unfamilar with webjects let me know and I can help you with this.


the task should be composed of:


the following webjects types


Start-Session


Start-Transaction


Change-Identity (this does the renaming) this webject will find the objects based on type and where clause and also rename


Commit-Transation (this commits the renaming to the dB)


End-Session


If you are renaming all objects to same name the new name would be hardcoded into the Change-Idenity webject. If not, a little Java code can take care of this as long as there is logic to determine the new name.


Let me know if you need any help.


David



In Reply to Klaus Hellweger:



Does anyone have an idea how to do a mass rename in PDMLink 9.1. For example rename all CAD Objects in specific folder.


Thank's and regards


Klaus


Hi



I guess depending on the nature of the change, you could add those objects in your WS and do a mass rename there.


There is a functionality to apply the same rule to all selected objects.


Again it depends on how you want to mass rename.


Best regards

There are a few things you can do in WS with multiple objects that you can't in Commonspace such as Revise and Set State, unfortunately Rename does not seem to be one of them at least as far as I can tell. This was a significant loss of functionality compared to 3.4.

Mike Foster
ATK

9.1 M060
Announcements


Top Tags