NX/Open Create action on Edit
NX/Open Create action on Edit
(OP)
Hi Everybody,
I'm working on a new project and after messing around for a day or 2 I'm a little bit stumped. I'm trying to create code for a project where we need to recolor certain holes based on their type i.e. Screw Clearance is blue. or something like. I'm at the stage of just trying to get the actions to fire. Using menuscript, I can set an Action/post and execute a DLL but if the user were to change the hole after creation (i.e. Right Click on a hole feature and choose edit, I don't know how to fire and action off that event).
Any suggestions would be greatly appreciated.
Hope you all have a great weekend!
-Pat
I'm working on a new project and after messing around for a day or 2 I'm a little bit stumped. I'm trying to create code for a project where we need to recolor certain holes based on their type i.e. Screw Clearance is blue. or something like. I'm at the stage of just trying to get the actions to fire. Using menuscript, I can set an Action/post and execute a DLL but if the user were to change the hole after creation (i.e. Right Click on a hole feature and choose edit, I don't know how to fire and action off that event).
Any suggestions would be greatly appreciated.
Hope you all have a great weekend!
-Pat





RE: NX/Open Create action on Edit
Edit -> Feature -> Assign Feature Color...
...where you will get a list of all valid features in the model which you can edit the color of, and using normal selection gestures, you can select one or more features and assign them a specific color.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: NX/Open Create action on Edit
Actually it is a long story... And yes I know I can use Assign feature color but I am trying to automate color holes based on specific design intent. I was able to accomplish it using some menuscripts and VB code.
This was the missing link:
MODIFY
BUTTON UG_MODELING_EDIT_FEATURE_PARAMETERS
ACTIONS/POST runEditUpdate
END_OF_MODIFY
MODIFY
BUTTON UG_MODELING_EDIT_WITH_ROLLBACK
ACTIONS/POST runEditUpdate
END_OF_MODIFY
Thanks,
-Pat
Thank you,
-Pat