- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I'm starting to write my first Add-In to Inventor.
I went through API tutorial in help.
As I see, when I want to debug my add-in, VS starts new instance of Inventor.
Is there any way to avoid this. Is there any way to connect to existing of Inventor process, and debug the add-in.
Also, when I will build new version of the plugin, will it automaticly reloaded in inventor?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I was afraid of that. I knew that there is an option, to connect to existing thread. But i was thinking that it's not necessary to restart Inventor.
I think, that for developing purpose i will be writing stand alone application, and on the end I will make from it a built in add-in. What do you think about that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Also the reason Inventor needs to restart is because once an addin is loaded Inventor is accessing the dll file and you can't swap that without either unloading it or closing Inventor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Since now, I was writing only Ilogic Rules. But lastly they become much bigger. I wrote rule for creating sheet numbers for whole project and for counting sheet with the same parts. Now I'm want to write rule for sheet sorting (based on sheet number).
As i have read (I have also tested it), creating standalone rule is much easier than creating an add-in. For example, you are crating any desktop app. In this app yiu can connect to inventor by:
Dim inventorApp As Inventor.Application = Nothing
Try
inventorApp = Marshal.GetActiveObject("Inventor.Application")
Catch ex As Exception
MsgBox("Lunch inventor first",, "No inventor instance")
End TryIf you have inventor object, you can do everything with fast debuging. After you will develop all the code, you can move heart of the app to add-in template (and add all the necessary user interface).
I have created this topic, because I was hoping, that there is a trick for fast debuging an add-in.
Thank you very much for your responses.