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: 

Macro for screenshot

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
attila.tolvaj
648 Views, 4 Replies

Macro for screenshot

Hi,

I would like a make macro for my NCPROGRAMS screenshot to the active project\ncprograms.
I have standard NCPROGRAM names: 100001, 100002..... ect.

 

Standard.jpg

 

Thanks

Labels (1)
4 REPLIES 4
Message 2 of 5
kukelyk
in reply to: attila.tolvaj

Hi, try this:

if length(project_pathname(0)) > 3 {
FOREACH ncp IN FOLDER('ncprogram') {
STRING pngname = replace(project_pathname(0), "/", "\") + "\ncprograms\" + $ncp.name + ".png"
DELETE FILE $pngname
DRAW NCProgram $ncp.name
//ROTATE TRANSFORM ISO2
KEEP BITMAP $pngname
UNDRAW NCProgram $ncp.name
}
}

//not tested..

üdv.

Message 3 of 5
attila.tolvaj
in reply to: kukelyk

Thank you!

It is working good, but, only make the first one NCPROGRAM screenshot.
I need everything in the project.

Üdv 🙂

Message 4 of 5
kukelyk
in reply to: attila.tolvaj

it works fine for me, if the 'ncprograms' folder exists..

Message 5 of 5
attila.tolvaj
in reply to: kukelyk

Oh my God... 1 symbol not copied... ( { )

Working perfectly!
Thank you very much!

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report