Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations LittleInch 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
Joined
May 1, 2003
Messages
96
Location
US
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?
 
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

Back
Top