Config File for Addin

Config File for Addin

bradeneuropeArthur
Mentor Mentor
307 Views
7 Replies
Message 1 of 8

Config File for Addin

bradeneuropeArthur
Mentor
Mentor

How can I use a the App.config file in the add-ins created.

I don't want to use the User.config file of Inventor which is per default used. I want to use a config file per add-in.

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
308 Views
7 Replies
Replies (7)
Message 2 of 8

Frederick_Law
Mentor
Mentor

VS2022 Community

When I go to Settings and create one, it use app.config.

After build it'll use addin name.

Addin-Settings-01.jpg

 

Change Scope in setting:

Addin-Settings-02.jpg

0 Likes
Message 3 of 8

Michael.Navara
Advisor
Advisor

I don't use built-in configuration but my own. It gives you full control on it. You can store configuration in any format (XML, JSON, Registry, ...) in any location (local file per computer, ...per user, shared server, external database, etc.).

Implementation is relatively simple. You can see this project (configuration class, config manager, initialization)for more info.

0 Likes
Message 4 of 8

bradeneuropeArthur
Mentor
Mentor

Hi @Frederick_Law 

did you rename the config file because in situation it is not using the App.Config file!

could you show what is copied to the add-in folder location?

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 5 of 8

Frederick_Law
Mentor
Mentor

I did not rename it.  It'll rename after build.  It'll show "addinname".config.

Addin-Settings-03.jpg

0 Likes
Message 6 of 8

bradeneuropeArthur
Mentor
Mentor

For my case it does not take the config file.

 

bradeneuropeArthur_0-1724337891079.png

 

bradeneuropeArthur_1-1724338437530.png

 

 

 

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 7 of 8

Frederick_Law
Mentor
Mentor

Hmmm my scope is "User".

0 Likes
Message 8 of 8

bradeneuropeArthur
Mentor
Mentor

What I try to achieve is that when I change the Local *.config file(in the add-in folder) that these settings is than used in the add-in.

Example:

 

I have a msgbox showing the following msgbox (my.settings.Name)

"Name is the setting with the string value "Banana"

 

when I change the *.config file locally after built and copying the files locally in the local file to "Name" ="Appel"

 

I want to show the msgbox result as "Appel"

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