I settled on just making a new menu to trigger the functionality I'm coding. The project kind of ballooned with more functionality that is better served by the user running separate functions that is not longer tied to when the user prints. Thanks for the suggestion anyway.
The winforms dialogs are by default modal, so they wont allow you to do anything in the attached application unless closed out. Instead of calling showDialog(), you should be able to call just show() which will call the winform as modeless allowing selection within the NX application. I haven't...
So I don't know how I didn't see this one before but there is a printNotfiy event handler which I missed in the documentation. Have to see if I can have it be able to trigger before actually printing the document but we will see, looks promising from the documentation.
I am trying to find a way to bind a custom dll to an existing button in Solidworks. Basically when the user hits the print button, I want that action to trigger my code to run first, then once execution is completed, continue on with the normal print function. I am used to having this...
Solved my problem, looped through the selectedObjects of the curveCollector, assigned to an array of regular nxopen.objects and was able to manipulate from there for what I need.
Run into a problem with using the curve collector in the snap block based dialog. When prompted to select a curve and I select one, a linked composite curve appears in the part navigator of the workpart as desired. As soon as I hit OK on the dialog the linked composite curve feature disappears...
I have tried that through the printer properties, That is how I came to realization that NX issues each sheet as a separate print job and not one. I had also thought there might have been and option under under a printbuilder (nxopen) using some options in sourcebuilder, but i came up empty.
Is there any option in NX to enable duplex printing? My situation is if I have 2 drawing sheets in a part file, I want it to print double sided. From what I've been able to find it looks as though my options are either using a print initialization file, a postscript setup or export as a appended...
I've tried looking for this before myself. All I came across was the following in the old user functions;
UF_CURVE_create_shadow_outline
UF_CURVE_create_silhouette
Not exactly precise outline but might work for your needs.
You can also go into the command line and type the following;
assoc .prt
#this will show you its association
ftype UGpartfile= (your program directory) \UGII\ugsrouter.exe
#this will set to whatever version of NX you want to load from
ftype UGpartfile
#this will verify the path
Registry will...
This is straight from Microsoft, just set the .multiselect property of the dialog to "true" Link to the documentation below.
Me.OpenFileDialog1.Multiselect = True
MSDN
You could always cycle through the object tags filtering results and only return those tags of objects that are drafting notes. From there you can reference those tags to what I assume search the contents of the notes.
'use this to cycle through object tags
ufs.Obj.CycleObjsInPart
'then ask...
Yes, as soon as "getsession" is called it errors out and stops working. This is the log file at that point
*/
NX License Error: License server system does not support this feature. [ -18 ]
at NXOpen.Utilities.BaseSession.InitLicense
at NXOpen.Session.GetSession()...
I have wrote a program that sets the assembly load options to specific folders for a particular set of jobs and then opens the selected assembly with these options. The program works great on my box but it was meant to run on the viewer. All of the functions I am using are available in gateway...