Macro for screenshot

Macro for screenshot

attila.tolvaj
Explorer Explorer
888 Views
4 Replies
Message 1 of 5

Macro for screenshot

attila.tolvaj
Explorer
Explorer

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

0 Likes
Accepted solutions (1)
889 Views
4 Replies
Replies (4)
Message 2 of 5

kukelyk
Advisor
Advisor
Accepted solution

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.

0 Likes
Message 3 of 5

attila.tolvaj
Explorer
Explorer

Thank you!

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

Üdv 🙂

0 Likes
Message 4 of 5

kukelyk
Advisor
Advisor

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

0 Likes
Message 5 of 5

attila.tolvaj
Explorer
Explorer

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

Working perfectly!
Thank you very much!

0 Likes