Singsonite
Automotive
- May 5, 2011
- 25
NX 6.0.3.6
Windows 7 Pro
Hello all,
I am trying to make a macro that will perform the following function:
<Start from a file that objects on some or all layers with all layers turned off>
1. Turn all layers on.
2. Set TFR-ISO view (fitting all to screen.
3. Edit Object Display.
4. Select all objects on one layer (ex. 21).
5. Change Color to specific layer number.
6. Apply change.
7. Select New Objects.
8. Loop back to #4 until objects on all 256 layers have been assigned a predetermined color.
9. Close dialog and end macro.
Additional criteria:
- Must not fault if no objects exist on specified layer.
I uploaded a shortened attempt at this concept that goes for layers 21 through 25 changing all objects to color #36 for each layer. One issue with the macro is that it doesn't change any layer color accept the last on the list (not sure why). Another issue being that it faults when no objects are present.
I would appreciate any assistance you can lend. If I'm going about this all the wrong way, feel free to let me know.
Thank you,
John B. Conger
Tool Design
Automotive Interiors
Advanced Engineering Solutions Inc.
Windows 7 Pro
Hello all,
I am trying to make a macro that will perform the following function:
<Start from a file that objects on some or all layers with all layers turned off>
1. Turn all layers on.
2. Set TFR-ISO view (fitting all to screen.
3. Edit Object Display.
4. Select all objects on one layer (ex. 21).
5. Change Color to specific layer number.
6. Apply change.
7. Select New Objects.
8. Loop back to #4 until objects on all 256 layers have been assigned a predetermined color.
9. Close dialog and end macro.
Additional criteria:
- Must not fault if no objects exist on specified layer.
I uploaded a shortened attempt at this concept that goes for layers 21 through 25 changing all objects to color #36 for each layer. One issue with the macro is that it doesn't change any layer color accept the last on the list (not sure why). Another issue being that it faults when no objects are present.
I would appreciate any assistance you can lend. If I'm going about this all the wrong way, feel free to let me know.
Thank you,
John B. Conger
Tool Design
Automotive Interiors
Advanced Engineering Solutions Inc.