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: 

Saving snapshots to the right directory

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
danmic7JH66
538 Views, 3 Replies

Saving snapshots to the right directory

I'm trying to macro out saving snapshots to the project file under the snapshots directory.  The problem I'm running into is it keeps saving it into the directory that the project is located in.  Is it possible to macro out saving the picture to the right path?

Here's what I'm working with (going off a post on the old forum)

 

STRING $dirpath = project_pathname(0) + "\SetupSheets_files\snapshots\"

MKDIR $dirpath

 

STRING $path = dirpath

 

KEEP BITMAP

MAIN.PNG

print = "${projectName(0)}/snapshots"

Yes

 

What am I missing?

3 REPLIES 3
Message 2 of 4
kukelyk
in reply to: danmic7JH66

Try this way

STRING $path = dirpath + 'MAIN.PNG'

KEEP BITMAP $path

 

Message 3 of 4
danmic7JH66
in reply to: danmic7JH66

I'll try that when I get back in to work!
Message 4 of 4
danmic7JH66
in reply to: danmic7JH66

Works perfectly thanks a million!

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

Post to forums  

Autodesk Design & Make Report