VB.Net to Ilogic Rule or VBA Macro

VB.Net to Ilogic Rule or VBA Macro

J_Dumont
Advocate Advocate
693 Views
4 Replies
Message 1 of 5

VB.Net to Ilogic Rule or VBA Macro

J_Dumont
Advocate
Advocate

I recently created a .Net Console app using Visual Studio that merges pdf files in a folder into one multi-sheet pdf.

I also have some iLogic code that creates the individual pdf files and I had to create the .Net app to generate the multi-sheet. I would like to keep all the code in a single place but I am struggling with how to do this.

I am using PDFSharp libraries in my code and I don't know how to access them in VBA. When I try to add a reference to the PDFSharp DLL's I get, "Can't add a reference to specified file".

Any help is greatly appreciated and I'm happy to share any code if necessary.

 

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

ckeveryga
Advocate
Advocate
Accepted solution

Your best bet would be to keep all of the code in .NET as the Inventor API is incredibly easy to access. Just add Inventor as a reference to your project and you can get the existing Inventor application or have your program start a new Inventor. 

0 Likes
Message 3 of 5

Martin-Winkler-Consulting
Advisor
Advisor
Accepted solution

If I understand you correctly you would like to start exporting the multi page pdf from Inventor. If you already have a .Net app I would integrate it into an Inventor addin. There you can also take over your iLogic code and then manage all functions in the Addin and start from the Inventor.
Have you ever created an Addin for Inventor in Visual Studio?

Martin Winkler
CAD Developer
Did you find this post helpful? Feel free to like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature

0 Likes
Message 4 of 5

J_Dumont
Advocate
Advocate

This is great input, thank you.

It sounds like the Add-in is the way to go.

I'll start exploring moving my iLogic code to Visual Studio.

 

0 Likes
Message 5 of 5

Martin-Winkler-Consulting
Advisor
Advisor

If the answer is a solution for you, then I ask you to mark it as a solution.
Good luck with the addin.

Martin Winkler
CAD Developer
Did you find this post helpful? Feel free to like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature

0 Likes