Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Set Component Name=Configuration Specific Property

Status
Not open for further replies.

sdb999

Mechanical
May 1, 2003
96
Has anyone seen a macro that, when run, will set the Component Name of all parts and Sub-Assemblies in a given file to a specifice Configuration Specific Property of said parts and Sub-Assemblies?
 
Replies continue below

Recommended for you

I haven't seen one, but here's how I would do it:

1.) Write a routing that traverses all the components.

2.) For each component, read the property in question, and set the component name to that property.

Traversing assemblies is covered in the API help.

Generic custom properties can be accessed without opening the file in question. For configuration-specific files, one normally needs to open that file fully (though this can be done by other means that are beyond my knowledge at this time).

[bat]"Great ideas need landing gear as well as wings."--C. D. Jackson [bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor