Export to 3D PDF Sample C# Code from the Documentation is not working.

Export to 3D PDF Sample C# Code from the Documentation is not working.

jmacapagal2CD9H
Contributor Contributor
464 Views
3 Replies
Message 1 of 4

Export to 3D PDF Sample C# Code from the Documentation is not working.

jmacapagal2CD9H
Contributor
Contributor

Good day!

 

I've been working on Exporting to 3d pdf using AnarkCore, however, using the provided sample C# codes from the documentation is not working when I try to use it from a custom addin that I created. Below is the actual error. Do you have any Ideas? 

jmacapagal2CD9H_0-1655799702909.png

jmacapagal2CD9H_1-1655799714334.png

 

 

Thank you.

 

0 Likes
Accepted solutions (1)
465 Views
3 Replies
Replies (3)
Message 2 of 4

Zach.Stauffer
Advocate
Advocate

I don't have any experience with this personally, but what I would try is to comment out the "oOptions.Value" lines one at a time until it works, and then you'll know which option setting it doesn't like. Once you know that it is easier to figure out why it's not working.

0 Likes
Message 3 of 4

jmacapagal2CD9H
Contributor
Contributor
It does not work if I use the same code from the custom addin that I created but, somehow works from a simple application that I made.
0 Likes
Message 4 of 4

jmacapagal2CD9H
Contributor
Contributor
Accepted solution

Declare the oDoc as dynamic ex: dynamic oDoc = mApp.ActiveDocument. Answer came from the Dev support

0 Likes