Hello,
I was wondering if there was a way to send a key in for a specific printer...?
At the moment i have code that runs through and determines what the 'paper size' is and the 'orientation' (SEE BELOW) of the drawing then prints accordingly. My trouble is specificing a printer name (currently, we leave it blank and it prints to the default printer). I want to be able to tell it which printer to print to. What is the line of code i need, more so what is the key command? For the sake of this post, the printer is called. a3myPrinter
Current code for 'paper size' is and the 'orientation'
CadInputQueue.SendKeyin "print papername " + paperSizeVariableCadInputQueue.SendKeyin "print orientation " + orientationOfPaperVariable
What do i need for 'printer name' (a3myPrinter)
CadInputQueue.SendKeyin "print printername " + "a3myPrinter" ?????
or
CadInputQueue.SendKeyin "print printer " + "a3myPrinter" ?????
Thanks in advance
You can find the keyins for an MDL application through the MDL dialog (Utilities|MDL Applications).
The printer application (PLOTDLG) will be loaded when you choose the File|Print menu. Open the MDL dialog and click the application whose keyins you want to see. I've attached a screenshot that shows the keyins for the PLOTDLG application.
Regards, Jon Summers LA Solutions