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!

API to rename a feature name

Status
Not open for further replies.

josephv

Mechanical
Oct 1, 2002
683
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
 
Replies continue below

Recommended for you

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