Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VBA DWF Publish options - Positional Reps

0 REPLIES 0
Reply
Message 1 of 1
RPdAnjou
531 Views, 0 Replies

VBA DWF Publish options - Positional Reps

Hi,

 

I have been using a VBA macro to publish a DWF including all positional representations for a while now.

But there is a error and I do not know how to prevent the macro from crashing.

 

I've used the code from this post

 

The problem is that when a positional representation fails, the publish of the DWF also fails.

The macro then stops at ".SaveCopyAs".

Also, "On Error ..." does not work in this line.

The pos reps are added to the publish options but the publish itself fails.

 

What I think is that when the DWF is generated and a pos rep is corrupted, the DWF generation will fail.

But how do I prevent publishing failing pos reps?

 

OK, I know there is a solution, just not publish files with corrupted pos reps.

Well, that's no option because this is a automated process, I just want to stop the export or skip that one pos rep that fails.

That way I can log the error and the rest of the files can be published correctly.

If needed, we can always correct the failed file and publish it again.

 

Thanks in advance!

0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report