01-23-2019
09:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-23-2019
09:03 PM
Still I strongly believe that error is due to line 12. Below iLogic code does not throw error. Just changed variable name for userparameter from BE_PC to BE_PC_1.
BE_PC = "BE"' deleted parameter
Dim oDrawDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim oDrawParams As UserParameters = oDrawDoc.Parameters.UserParameters
'oMyParameter = ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters
Try
'Change value of param
Parameter("BE_PC") = Parameter("BE_PC")
Catch
'Create Param as it doesn't exist
Dim BE_PC_1 As UserParameter = oDrawParams.AddByValue("BE_PC" , "BE", UnitsTypeEnum.kTextUnits)
End Try
MultiValue.SetList("BE_PC", "BE", "PC")
BE_PC = "BE"
Thanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network
