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
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
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
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
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