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

Actually, the question about how SharedVariables came up in a pretty recent forum discussion, and Mike Deck (Autodesk developer & Inventor API expert) mentioned that they are essentially backed by a Dictionary(Of String, Object).  The question at that moment was..."Where can I find a list of all currently existing SharedVariables?"  He said that is not available at the moment, but that it could fairly easily be implemented.  He also suggested that we create our own new SharedVariable with a 'New Document(Of String, Object)' as its value.  Then any time during that session, store everything in that existing shared dictionary.  That way we have a good way to find what exists.  Not perfectly fool proof, but a great idea.

Also, even though that method mentioned above takes a Document as input, I can not be sure that if you create a SharedVariable using that resulting IStandardObjectProvider (IStandardObjectProvider.SharedVariable Property) that it will somehow be linked to that Document.  Some of those things may simply not be able to have an association that way, not sure.  I didn't design all that iLogic stuff, just a regular 'user' who's been 'snooping' quite a bit for quite a while.

 

Edit:  Found that discussion thread...link below:

https://forums.autodesk.com/t5/inventor-programming-ilogic/list-of-current-sharedvariables/m-p/13137... 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)