×
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

Reactivate or Refocus NX Session with NX Open

Reactivate or Refocus NX Session with NX Open

Reactivate or Refocus NX Session with NX Open

(OP)
Hi there,

I have an NX Open .exe code running (simple Window forms in c#) and I cannot seem to refocus or return or reactivate the UGS NX design environment/session from my app. Is just hanging there.. Has anybody came across this? Any ideas to resolve that?

Thank you,
Zoes

RE: Reactivate or Refocus NX Session with NX Open

Hi

If I understand correctly, you run the NXOpen app and NX just hangs(stops working) until you close your NXOpen app?

If so, my guess is you are using the .ShowDialog() (Modal) to launch your form. Try using .Show() (Not Modal) instead.

Regards

RE: Reactivate or Refocus NX Session with NX Open

(OP)
Thanks for the reply.

I'm not sure where to assign the .ShowDialog or .Show to.. I just want to display the "Curve" dialog menu?

So having the theSession.SetUndoMarkVisibility(Id2, "Curve", NXOpen.Session.MarkVisibility.Visible);
How I show the dialogue "Curve"?

Regards,
Zoe

RE: Reactivate or Refocus NX Session with NX Open

The SetUndoMark functions are to stablish internal NX undo marks, like ctrl + Z. They are not intended to show or hide any dialog.

I did a couple of tries at showing an existing nx dialog, but with no luck, i'm not sure if a NX dialog can be shown with NXOpen, usually the reason of using NXOpen is doing the job without opening some existing NX dialogs.

You mentioned an .exe, Im not familiar with a .exe being able to communicate with NX, usually the nxopen code is compiled into a .dll and launched inside nx via File->Execute->NXOpen

RE: Reactivate or Refocus NX Session with NX Open

(OP)
Thanks for the reply. I really wanted to see if that's possible. As for the .exe you mentioned, I have done it by using Window forms and NXOpen to control "Expressions" so I thought I would be able to do more code like that by incorporating the modelling functionality as well. Perhaps not.

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