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

Hi guys.  I am admittedly not experienced in add-in creation/development, but I may still be able to help here.  The iLogic 'Rule Object' named "SharedVariable" is one of those thing that is automatically created for us in the background, within the other half of the 'Public Partial Class ThisRule' that we generally never see.  And it uses a method for setting its value that does not seem to be available to us on 'our side' of that Class (in our regular iLogic rules).  The only way I know how to set the value of a variable of that ISharedVariable type is by using one of the two following uniquely iLogic paths to get an IStandardObjectProvider:

Oddly enough the 'StandardObjectFactory' seems to already exist, and is ready for us to use in our iLogic rules, and in external rules marked as Straight VB Code'.

However, standard practice is to 'pass' the 'iLogicVb or InventorVb' (ILowLevelSupport Interface) object to our external resource, one way or another, then use that to set the value of a local variable, then go from there.  But I'm not sure how that would work in an add-in.

Once you have that IStandardObjectProvider, you can create most of those other 'rule objects', and they will be 'scoped or focused on' to that Document you specified.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)