3D-Pdf export to same location as 3D-file

3D-Pdf export to same location as 3D-file

Kupiszewski_A_
Explorer Explorer
207 Views
4 Replies
Message 1 of 5

3D-Pdf export to same location as 3D-file

Kupiszewski_A_
Explorer
Explorer

Hello everyone,

I'm trying to write an ilogic rule that creates a 3D PDF and saves it in the same folder (or subfolder) as the original 3D part. I've tried many things, but it just doesn't work.

 

Can someone please help me?

Thank you very much!

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

cidhelp
Advocate
Advocate
Accepted solution

Hello @Kupiszewski_A_ ,

 

there is a VBA-Sample to export 3D-PDF:
https://help.autodesk.com/view/INVNTOR/2025/ENU/?guid=ExportToPDF3D_Sample
I created a iLogic rule from that. This rule exports the active document to 3D-Pdf (same folder as model).

You have to adjust the template filenames (line 16/18) and the names of the design views (line 34/35).

0 Likes
Message 3 of 5

Kupiszewski_A_
Explorer
Explorer

hallo cidhelp!

 

Thank you very much It works great!

I modified the rule. It creates a subfolder for the PDF. That works too. But it remains empty.

The PDF is saved in the main folder.

Can you please take a look at it?

 

Thank you very much for your help!

0 Likes
Message 4 of 5

cidhelp
Advocate
Advocate

you have to replace line

Dim ExportFileName = ThisDoc.ChangeExtension(".pdf")

with

Dim ExportFileName = oFolder & ThisDoc.FileName & ".pdf"
0 Likes
Message 5 of 5

Kupiszewski_A_
Explorer
Explorer
Accepted solution

It works wonderfully!
Thank you very much

0 Likes