- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm obviously doing something wrong... but can't for the life of me figure out what (Not super VBA savvy).
'preamble in VBA
Dim ClientId As String
ClientId = "{3BDD8D79-2179-4B11-8A5A-257B1C0263AC}"
Dim iLogicAddIn As ApplicationAddIn
Set iLogicAddIn = ThisApplication.ApplicationAddIns.ItemById(ClientId)
Dim iLogicAuto As Object
Set iLogicAuto = iLogicAddIn.Automation
If (iLogicAuto Is Nothing) Then
Call MsgBox("Can not use iLogic")
Exit Sub
End If
'Works in iLogic
'''Dim iLogicAuto = iLogicVb.Automation
'''Dim ilogicPath As String() = {"C:\Vault\Testing\", "C:\Vault\Testing2\"}
'''iLogicAuto.FileOptions.ExternalRuleDirectories = ilogicPath
'Doesn't work in VBA
Dim ilogicPath As String
ilogicPath = Array("C:\Vault\Testing\", "C:\Vault\Testing2\")
Let iLogicAuto.FileOptions.ExternalRuleDirectories = ilogicPath
Relevant:
https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=a6d2fdcb-7753-9394-07c4-adb50a85b9e8
Solved! Go to Solution.
