Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a rule that creates a Parameter inside an IDW file and works fine.
'Creating a Drop down for the Author Dim List As New List(Of String) List.Add("") List.Add("DDiggler") List.Add("BJohnson") List.Add("JHolmes") List.Add("LRichards") List.Add("TWang") Dim ParamName As String = "Author" Dim oDoc As DrawingDocument = ThisDoc.Document Dim oUPs As UserParameters = oDoc.Parameters.UserParameters Dim oUP As UserParameter Try oUP = oUPs.Item(ParamName) Catch oUP = oUPs.AddByValue(ParamName, List(0), UnitsTypeEnum.kTextUnits) ' Make parameter key oUP.IsKey = True End Try MultiValue.List(ParamName) = List
I believe it has something to do with DrawingDocument, so I changed it to PartDocument and it still didn't work.
I am still learning the iLogic / API and not sure what the issue could be.
This is the error I am getting.
Any ideas will be appreciated.
Solved! Go to Solution.