inventor 2025 with iLogic and external dll example in vb or c'#

inventor 2025 with iLogic and external dll example in vb or c'#

juergengross
Observer Observer
206 Views
2 Replies
Message 1 of 3

inventor 2025 with iLogic and external dll example in vb or c'#

juergengross
Observer
Observer

Is there any public solution in visual studio for a small project with 

 inventor 2025

 iLogic

dll in .net8.  with forms (Preferred in vb)

Means a simple rectangular eg. 30 x 100 x 125, with ilogic an using a dll which do readind and save e.g. a

iProperties.Value("what you like", "what you like")

?

the simple reason for this topic is as we all now know, the .net 8 has no easy way to access to the invenventor instance as  marshal.getactiveobject().

Unless the great block of Chandra shekar Gopal (adndecblog.typepad.com) I understand the workaround now for c#, but not how to set up dll in c# with forms. 

But some user are "old school" and used before vb with forms only.... .

 

THANKS A LOT FOR SOME KIND HELP.

 

Juergen Gross

vueing.de

 

 

 

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

JelteDeJong
Mentor
Mentor
Accepted solution

I don't exactly understand what you are looking for. But I have a solution for the Marshal.getactiveobject() problem. You can use the code on my GitHub for the Marshal2 class. It works like the old code:

Dim inventorObject As Inventor.Application = Marshal2.GetActiveObject("Inventor.Application")

The VB.Net version can be found here:

https://github.com/hjalte79/UtilityClasses/blob/master/Marshal2.vb

And here is the C# version

https://github.com/hjalte79/UtilityClasses/blob/master/Marshal2.cs

 

 

Jelte de Jong
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


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 3

juergengross
Observer
Observer

Hi Jelte,

 

thank you very much for your effective support by your website and github account.

In summary, this was what I looking for.

Now I try to get a base visual studio solutuion to get a c# dll, which will be tiggered  by an iLogic (not an AddOn) and has the marshall class.

So on this base, the needed functionality cann added by separate classes.

If there are additional turorials availble, it will help me a lot.

 

Kind regards

Jürgen Groß

 

  

 

0 Likes