Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

name of planes

Status
Not open for further replies.

FedaykinHandler

Mechanical
Dec 8, 2013
12
Hi, i wonder if there is a way to make the planes start at number one or a specified number when using them again? =)
 
Replies continue below

Recommended for you

you can rename them after creating it...please explore in settings...
 
I dont want to rename them one and one, do you mean some kind of batch rename?
 
I dont think that there is any option for this. You will have to go for a Macro. Please check with the forum guys for the macro on this.
 
Hi,

Working in CATPart....not tested...starting from 1

Code:
Sub CATMain()

Set partDocument1 = CATIA.ActiveDocument
Set selection1 = partDocument1.Selection

selection1.Search "Name= Plane*,all"

oCount = selection1.Count2
For i = 1 To oCount
selection1.Item2(i).Value.Name = "Plane." & i
Next

End Sub

Regards
Fernando

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor