Non-reproducible macro for saving to PDF and DWG

Hi all

I created from various info to pick up here and there a macro for solid 2011sp5 that worked without problem.

During our visit to 2013sp5 I made a small modification where I add the index of my parts (parameter: Revision:) at the end of the filename.

But since then, saving in DWG and PDF is not always done...

Anyone have any idea why?


transfer_sldw-dwg.swp

Hello

Is there an error message?

By doing a step-by-step reading of the macro, all the lines are activated?

There is no error just the files that are not created... while the macro is correctly applied (we can distinguish the zoom all the way to the display + the hourglass that starts)

1 Like

Hello, wouldn't it be because there is a character in your filename that is not accepted? like the "/" for example.

 

Try removing the ":" and remove the accents as well.

4 Likes

Strange fact that I just discovered: if I do a save as (dwg) and I run the macro right after, it works... I really don't understand anything anymore....  

1 Like

The macro does not work in 2014. So I can't test it....

I just tested by calling a parameter: test

This seems to have fixed the problem.

1 Like

And after restarting the computer without running a save-under before?

So it's "Revision:" that is blocking.

 

See on the side of your parameter if there are no problems.

 

Try calling your parameter on another function, for example on a table, to see if it fits correctly.

 

 

1 Like

I was able to change "Revision:" to "Revision" and confirm on 2 pieces that it worked well.

Thank you 

1 Like

So it was the accents or signs that didn't work =)

 

Derien!

 

Have a nice day

2 Likes