Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

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

API to rename a feature name

Status
Not open for further replies.

josephv

Mechanical
Joined
Oct 1, 2002
Messages
683
Location
CA
Hello,

We would like to create a macro that automatically renames a line (e.g. line.3) to "line.centered".

Is there an API that can rename a feature name? We could not find one in the documentation. Also, we recorded a macro while renaming a feature, but no code was generated.

Kind regards,

Joseph
 
ok.. I got the answer, here is what the API would look like

oMyLine.Name = "TheNewNameYouWant"


Best regards,

Joseph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top