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.
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.