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

I am pretty sure that I have seen forum replies where someone from Autodesk has told us that 'creating' or 'getting' the 'iLogicVb' (ILowLevelSupport) object within external resources like add-ins is not possible, and therefore it must be passed in.  There are a few things which are unique to iLogic that we can do in external resources without needing to pass that object in though.  Perhaps the oldest, and best known way is to get the actual ApplicationAddIn object for iLogic, then create a variable set to Object type, or more specifically IiLogicAutomation Type, then set its value with the ApplicationAddIn.Automation property.  Not all add-ins have a useful value for that, but since iLogic has its own internal API, it does have a useful value.  It will act the same as the phrase 'iLogicVb.Automation' does in a normal iLogic rule.

 

PS.  Also, for what its worth, if you go to the Tools tab, then click on the Add-Ins button on the Options panel, it will open the small dialog with two tabs, showing all the current add-ins.  If you select one, then look at the bottom of the dialog, you will see the location of the primary DLL file supporting that add-in.  This of course is not the only file involved, but sometimes you can add a reference to that DLL in your code, then you can explore some of the stuff that they have publicly accessible in that DLL.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)