Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add a prefix or postfix to Catia objects

Status
Not open for further replies.

sclingan

Automotive
Jun 6, 2010
3
0
0
US
Create a string parameter
The prefix or postfix
Create a rule

(Catia object)
A Catia object can be a
Part body
Geometric set
And anything in them just select from the Catia tree

(.Name) a hidden parameter

Name change rule
Catia object .Name = "new object name" + new parameter

Example
The object is (Sketch.1)
The parameter you create is "1"

'Sketch.1' .Name = "Sketch" + 'new parameter'

This will change the name from Sketh.1 to Skech.2 or 3 and so on

If you create a Body with geometric set inside
Add the parameter and the rule inside the geometric set
You will be able to copy past this body and change the prefix / postfix
The name of the body or anything included in the rule will change
 
Status
Not open for further replies.
Back
Top