×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

NX/Open Create action on Edit

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

RE: NX/Open Create action on Edit

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.

RE: NX/Open Create action on Edit

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources