Load independent add-ins in more than one session of Autodesk Inventor

Load independent add-ins in more than one session of Autodesk Inventor

KOKAK
Enthusiast Enthusiast
1,396 Views
30 Replies
Message 1 of 31

Load independent add-ins in more than one session of Autodesk Inventor

KOKAK
Enthusiast
Enthusiast

When I charge a second or third Inventor session to work with more than one project at a time, the Add-ins programmed by me and loaded in these new sessions, always work on the first session of Inventor.

What must be done so that the Add-ins of each Inventor session are independent and work each one with their corresponding Inventor session.

0 Likes
1,397 Views
30 Replies
Replies (30)
Message 2 of 31

bradeneuropeArthur
Mentor
Mentor

Hi,

 

Where did you store the dll files on you machine?

Where did you store the addin files on you machine?

 

Regards,

Autodesk Software: Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018
Programming Skills: Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Dimension Component! | Partlist Export! | Derive I-properties! | Vault Prompts Via API! | Vault Handbook/Manual!
Drawing Toggle Sheets! | Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 31

KOKAK
Enthusiast
Enthusiast

@bradeneuropeArthur wrote:

Hi,

 

Where did you store the dll files on you machine?

Where did you store the addin files on you machine?

 

Regards,

Autodesk Software: Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018
Programming Skills: Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Dimension Component! | Partlist Export! | Derive I-properties! | Vault Prompts Via API! | Vault Handbook/Manual!
Drawing Toggle Sheets! | Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 

 

Thanks for answering.

both the dll files and the addin files are stored in the folder

0 Likes
Message 4 of 31

KOKAK
Enthusiast
Enthusiast

Both the DLL files and the add-in files are stored in the folder C: \ Datos de programa \ Autodesk \ Inventor complementos

0 Likes
Message 5 of 31

bradeneuropeArthur
Mentor
Mentor

use the following

C:\ProgramData\Autodesk\Inventor 20xx\Addins >> : for the add in file

C:\Program Files\Autodesk\Inventor 20xx\Bin>> : for the dll file

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 6 of 31

KOKAK
Enthusiast
Enthusiast

Sorry. Problems with the simultaneous translation of the browser.

Both the DLL files and the addin files are stored in the folder C:\ProgramData\Autodesk\Inventor Addins

********

Following its indications I have copied the .addin files in the folder C: \ ProgramData \ Autodesk \ Inventor 2019 \ Addins and the dll files in the folder C: \ ProgramData \ Autodesk \ Inventor 2019 \ Addins.

However, the same thing still happens: I open two Inventor sessions and in both cases my add-on programs refer to the files (ipt, iam, idw) active in the initial session and not those in the second.

0 Likes
Message 7 of 31

KOKAK
Enthusiast
Enthusiast

I correct:
The dll files I have copied in C: \ Program Files \ Autodesk \ Inventor 2019 \ Bin

0 Likes
Message 8 of 31

KOKAK
Enthusiast
Enthusiast

An example:

I open an Inventor session ("A") and load an idw ("1").

I open another session of Inventor ("B") with another different project, and charge another idw ("2").

Now I execute a program of mine that centers all the dimension texts.

If I execute it in ("A"), all the decentered dimensions are centered in the drawing ("1").

If I execute the program in ("B"), the dimensions of the drawing ("2") are not centered but those of the drawing ("1") open in ("A").

0 Likes
Message 9 of 31

bradeneuropeArthur
Mentor
Mentor
Don't copy it. But move it to the correct folders.

Could you upload the add.in file with the settings. This is actually an xml file.

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 10 of 31

KOKAK
Enthusiast
Enthusiast

I have moved the dll files to C: \ Program Files \ Autodesk \ Inventor 2019 \ Bin and the manifest Addin files to C: \ ProgramData \ Autodesk \ Inventor 2019 \ Addins and it still gives me the same result: all my complements are executed on the first open session of Inventor although they are of other later sessions.

The manifest Addin files follow the following structure:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<Addin Type="Standard">
  <!--Created for Autodesk Inventor 2014 (Version 18.0)-->
  <ClassId>{3d2c19c3-1e12-4681-8bb5-88aad094e388}</ClassId>
  <ClientId>{3d2c19c3-1e12-4681-8bb5-88aad094e388}</ClientId>
  <DisplayName>SampleAddIn</DisplayName>
  <Description>SampleAddIn</Description>
  <Assembly>SampleAddIn.dll</Assembly>
  <SupportedSoftwareVersionGreaterThan>21..</SupportedSoftwareVersionGreaterThan>
  <LoadAutomatically>0</LoadAutomatically>
  <LoadOnStartUp>1</LoadOnStartUp>
  <LoadBehavior>2</LoadBehavior>
  <UserUnloadable>1</UserUnloadable>
  <Hidden>0</Hidden>
</Addin>

0 Likes
Message 11 of 31

bradeneuropeArthur
Mentor
Mentor

Hi,

 

What I can figure out is the following:

<LoadBehavior>2</LoadBehavior>

change this to 

<LoadBehavior>0</LoadBehavior>

or delete this line..

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 12 of 31

bradeneuropeArthur
Mentor
Mentor

and this:

 

<LoadAutomatically>0</LoadAutomatically>

 

change it to 

 

<LoadAutomatically>1</LoadAutomatically>

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 13 of 31

bradeneuropeArthur
Mentor
Mentor

These are the most common settings for the xml file:

<Addin Type="Standard">
<!--Created for Autodesk Inventor Version xx.0--> 
<ClassId>{51e6ad8e-5eaa-42a1-b845-a68802a26bf7}</ClassId>
<ClientId>{51e6ad8e-5eaa-42a1-b845-a68802a26bf7}</ClientId>
<DisplayName>SampleAddIn</DisplayName>
<Description>SampleAddIn</Description> 
<Assembly>SampleAddIn.dll</Assembly>
<OSType>Win64</OSType>
<LoadAutomatically>1</LoadAutomatically> 
<UserUnloadable>1</UserUnloadable>
<Hidden>0</Hidden> 
<SupportedSoftwareVersionGreaterThan>yy..</SupportedSoftwareVersionGreaterThan>
<DataVersion>1</DataVersion> 
<LoadBehavior>2</LoadBehavior> 
<UserInterfaceVersion>1</UserInterfaceVersion>
</Addin> 

 Regards,

Autodesk Software: Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018
Programming Skills: Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Dimension Component! | Partlist Export! | Derive I-properties! | Vault Prompts Via API! | Vault Handbook/Manual!
Drawing Toggle Sheets! | Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 14 of 31

KOKAK
Enthusiast
Enthusiast

<LoadBehavior > 2 (Load when an assembly document is opened)

0 Likes
Message 15 of 31

bradeneuropeArthur
Mentor
Mentor
Is that what you need?

but more important:
<LoadAutomatically>1</LoadAutomatically>

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 16 of 31

KOKAK
Enthusiast
Enthusiast

I have configured all the addins files with <LoadAutomatically> 1 </ LoadAutomatically> but all the complements on the first session are still running.

I do not know whether the topic will have to do with the addin manifest files.

0 Likes
Message 17 of 31

bradeneuropeArthur
Mentor
Mentor
What do you mean with
"but all the complements on the first session are still running."

can you upload your code?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 18 of 31

KOKAK
Enthusiast
Enthusiast

Excuse my bad English.

I mean that the complements of the second or third Inventor session do not run in their corresponding session, but in the first Inventor session loaded.

0 Likes
Message 19 of 31

bradeneuropeArthur
Mentor
Mentor
Then you use the wrong application in your add in. How do you get your inventor application?
Upload your code and I will figure this out. I think that this is the issue and can be solved simply.
Regards.

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 20 of 31

KOKAK
Enthusiast
Enthusiast

I created the Addins for Inventor using the template "Autodesk Inventor 2016 Addin" included in the SDK. Later I follow the structure created, so I do not know if there is something to modify.

0 Likes