[Macro] Getting the SetupSheet's Project Summary's filename into a variable

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I'm trying to make a macro in PowerMill that will make the printing of the report file much easier.
A little information to keep you up to speed: For my work I have several Project Summary files for several different details. For easier understanding imagine 5 different details each with a different Project Summary report file. They all need a SetupSheets Snapshot image saved in a specific location(the location is the same for all of the report files). The last thing is printing the report.
So, I found a code that makes a Snapshot image and saves it then in the desired location. Heres the code for that:
KEEP SNAPSHOT PROJECT CURRENT TEXTINFO ACCEPT KEEP BITMAP FILESAVE "\\192.168........\MARKIRANE\ProjectSnapshot.png"
In another macro(this one is used at the start of a project) I change the name of the Project Summary file(and many other thins) to a desired one that will work on this specific detail/model. But in our work there are sometimes situations where we have to close the current project, check something and then continue the first work. I think that we all know that If we clear all data and refresh all forms in the Power Mill we will lose the name of the Project Summary file.
So now the question:
Is there a way to get the SetupSheet's Project Summary's filename and assign it to a variable?
If I can do that I can check if there is a change in the name and if needed I will change it again with a simple pick form a list(like a said I change this Project Summary name in a separate macro).
After that all that is needed from me is to start the printing of the report:
PRINT SETUPSHEETS NCPROGRAM ALL
Every help will be appreciated.
With best regards.
Miroslav Penev