Skip to main content
12-Amethyst
August 23, 2012
Question

Mass rename in PDMLink 9.1

  • August 23, 2012
  • 4 replies
  • 982 views

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

12-Amethyst
August 23, 2012
Use SQL, or write a Java Program. In general, for mass renaming, we
usually write an SQL script.

Al Anderson



1-Visitor
August 24, 2012

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


1-Visitor
August 24, 2012

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

10-Marble
August 24, 2012
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