Community
PowerMill Forum
Welcome to Autodesk’s PowerMill Forums. Share your knowledge, ask questions, and explore popular PowerMill topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Force printing of Powermill setup sheets.

11 REPLIES 11
Reply
Message 1 of 12
Anonymous
930 Views, 11 Replies

Force printing of Powermill setup sheets.

Is there a macro that I can call within my macro to force the printing of the Powermill setup sheets, once the print preview popup appears.

 

I believe that once the popup appears, it's out of the hands of Powermill and becomes a Windows 7 control issue.

 

Thanks,

 

Glen

11 REPLIES 11
Message 2 of 12
NanchenO
in reply to: Anonymous

I fear that you are right and I did not find how to do it Smiley Sad

 

Olivier

Message 3 of 12
Anonymous
in reply to: Anonymous

I sure hope there is a solution. Otherwise, definitely a wish list item!
Message 4 of 12
kukelyk
in reply to: Anonymous

Since we do not use the out-of-the-box setup sheets, but excel files, I am not sure, but if You send some sample filenames for different projects' setup sheets' full path, we could find some kind of solution.

ie. C:\myprojects\Pmill_project1\setup_sheets\setup1.html

C:\myprojects\Pmill_project1\setup_sheets\setup2.html

C:\myprojects\Pmill_project2\setup_sheets\setup2.html

Message 5 of 12
GlennM.MCAM
in reply to: Anonymous

I just press "Alt+P" and hit enter. Fastest option as far as I know.

 

Glenn


Intel i7 4790 @ 3.60GHz -16GB RAM - Nvidia Quadro K620 - 250GB SSD - Win 7 Pro x64 SP1
PowerMILL Premium 2019.1 - PowerINSPECT Ultimate OMV 2017 SP6
Message 6 of 12
Anonymous
in reply to: GlennM.MCAM

Thanks GlennM,

 

But my question is how do you get those keystrokes to happen during the macro?

I don't want the user to have to keep kitting keys, I just want the macro to print the setup sheets out in the order as prescribed in the macro, without user intervention, beyond the starting of the macro.

 

Thanks,

 

Glen

Message 7 of 12
GlennM.MCAM
in reply to: Anonymous

That is a windows command and have no clue if you can trigger this with a powermill macro.

 

Glenn


Intel i7 4790 @ 3.60GHz -16GB RAM - Nvidia Quadro K620 - 250GB SSD - Win 7 Pro x64 SP1
PowerMILL Premium 2019.1 - PowerINSPECT Ultimate OMV 2017 SP6
Message 8 of 12
ewshp
in reply to: GlennM.MCAM

I am too searching for a way to do this and i may have found something

Note : I haven't tested this yet

 

Found a little (free) software that monitors a specific directory on the computer and when a file appears in it, sends it directly to the printer without any user confirmation (as long as it is a "printable" file type).

So the process would be to generate the setupsheets as usual in a specific folder and they would get printed on the default windows printer.

It removes some additional complexity of OLE action command in PowerMILL macros

The software is called PrintFile

Sam

Message 9 of 12
Anonymous
in reply to: ewshp

Thanks Sam,

 

I will consider this.

 

Glen

Message 10 of 12
5axes
in reply to: Anonymous

As i have excatly the same request; I'm Wondering if you have found a solution to print a SteupSheet whitout displaying the Print Preview ?

 

PRINT SETUPSHEETS NCPROGRAM ;

// How to close of hide the PRINT PREVIEW ??

YES
TEXTINFO ACCEPT

Message 11 of 12
tibor.vekasi
in reply to: 5axes

Generic solution for Pop-up windows: use AutoIt V3 https://www.autoitscript.com/site/autoit/

 

Sample macro for using:

// All exe in macro folder
// Start Query and Print preview automation
OLE FILEACTION "open" "PmillQueryAuto.exe"

PmillQueryAuto.JPG


//
// Toggle Powermill Query automation
OLE FILEACTION "open" "TogglePmillQuery.exe"
//
// Toggle Print Preview automation
OLE FILEACTION "open" "TogglePmillPrintPreview.exe"
//
// Close Query and Print preview automation
OLE FILEACTION "open" "ClosePmillQueryAuto.exe"

 

Source codes and exes attached.

 

The PmillQueryAuto needs to be  edited: I use hungarian language Win10, Print Preview Window text is "Nyomtatási kép"

 

Message 12 of 12
rob_carri
in reply to: tibor.vekasi

Yes, I just mad, html viewer right button, preview, orient, reduce, print

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report