Message 1 of 7
Add user text parameter through iLogic

Not applicable
03-13-2018
07:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Using Inventor 16
I am trying to add a user text parameter to the active document (typically ipt) with the following in an iLogic rule:
oUParams=ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters oUParams.AddByValue ("Description","",UnitsTypeEnum.kTextUnits)
Running this doesn't throw any errors, but it also doesn't create the parameter.
What am I doing wrong?