Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'd like to modify Advanced iLogic Configuration programmatically within current Inventor session (add one more External Rule Directory path).
From this article I believe the Directory list to be modified is a one-size array (of strings).
But when I'm trying to resize (enlarge by 1) the array like this (iLogic):
Option Explicit On
Dim ClientId As String = "{3BDD8D79-2179-4B11-8A5A-257B1C0263AC}" ' iLogic's GUID
Dim iLogicAddIn As ApplicationAddIn = ThisApplication.ApplicationAddIns.ItemById(ClientId)
Dim iLogicAuto As Object = iLogicAddIn.Automation
Dim path As Object
For Each path In iLogicAuto.FileOptions.ExternalRuleDirectories
logger.info("Directory name: " & path)
Next
ReDim Preserve iLogicAuto.FileOptions.ExternalRuleDirectories(iLogicAuto.FileOptions.ExternalRuleDirectories.Length) ' ??? Conversion from type 'Object()' to type 'String()' is not valid.
I keep getting error "Conversion from type 'Object()' to type 'String()' is not valid."
What I'm missing?
PS:
I kindly hope @MjDeck will find possible to comment on this.
Please vote for Inventor-Idea Text Search within Option Names
Solved! Go to Solution.