Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Creating common parameters database

MM5XZCAE
Participant

Creating common parameters database

MM5XZCAE
Participant
Participant

Hi everyone,

 

How to create a common parameter database that can be accessed by all the inventor files through ilogic or somehow?

 

For example, creating a dimension parameters database and accessing those parameters through the code in an application.

 

Kindly help me on this query.

 

Thanks,

Khizam

 

 

0 Likes
Reply
367 Views
3 Replies
Replies (3)

CattabianiI
Collaborator
Collaborator

What's the difference between accessing parameter through a database ((filename, model state name, parameter name) would be the key, I think) and through inventor document object? What's your pourpose?

Anyway you could leverage ModelingEvents.OnNewParameter / OnParameterChange to store the parameters in your database.
And for such a simple database I would recommend SQLite, but internet is a better place to look for this answer.

0 Likes

MM5XZCAE
Participant
Participant

I will explain the use case,

 

say for example, I have a dimension parameter (InletDiameter = 10 in). I want to use this parameter in multiple inventor models instead of recreating it every time in each model and the value 10in may change at some circumstances, at that time I don't want to open each model and change the parameter value, instead changing the value in the database has to reflect on all the models.

0 Likes

CattabianiI
Collaborator
Collaborator
So is the database the data source? From the db to the models, not the opposite, right?

> changing the value in the database has to reflect on all the models.
this is not possible without opening the model you want to update, though.
0 Likes