Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX/Open Create action on Edit

Status
Not open for further replies.

pcalonzi2

Mechanical
Feb 1, 2013
18
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
 
Replies continue below

Recommended for you

What version of NX are you running? If you're running NX 8.5, there's already a function to do this interactively. Just go to...

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.
 
Thanks John,

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor