Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Re. Macro that give names to dimesions?

Status
Not open for further replies.

NirVidP

Industrial
May 10, 2010
45
thread559-102461

I was just browsing through archived threads out of curiosity.
The original problem was to rename three selected dimensions and change their names to predefined standard names and create custom property for each of them. The solution provided was able to process only one dimension. So the macro had to be run 3 times in each document. So, I tried and came out with a solution that requires macro to be run only once in each document.

Here is the pseudo-code:
10. Open the part in which the dims are to be renamed.
20. Manually select the three dims that are to be renamed.
30. Run the macro.
30. The macro displays the selected three dims on a form (each in its own label), with 3 radio buttons in front of each label, indicating the new names (L / OD / ID )
40. User can assign one name to only one listed value. (This could require a bit of extra efforts, but not very difficult)
50. The macro assigns specified names to each of the selected dims and creates custom variable for each dim with new name.

If anybody is interested, I can post the code.
 
Replies continue below

Recommended for you

I wish someone would make a macro and post it in the FAQ to remove old Custom properties (custom and config-specific properties). There is a macro that Lenny posted from years ago that works, but it's a little clunky from the age, and when flipping between configurations it's really slow. Attached is the original macro if you feel the need. ;)



Scott Baugh, CSWP [pc2]
Mechanical Engineer
Ciholas

"If it's not broke, Don't fix it!"
faq731-376
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor