08-19-2023
01:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-19-2023
01:52 PM
You could use it like this:
Dim doc As PartDocument = ThisDoc.Document
Dim userParameters = doc.ComponentDefinition.Parameters.UserParameters
userParameters.AddByValue("MyStringParameter", "Parameter text", UnitsTypeEnum.kTextUnits)
As a bonus, I wrote a blog article "Parameter, Document and Database Units". In the article, I use the method "UnitsOfMeasure.GetTypeFromString(...)"
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com