Message 1 of 10
Add UserParameter.

Not applicable
08-25-2015
02:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good day.
Please, help me, what is incorrect in this code:
design = adsk.fusion.Design.cast(app.activeProduct) design.designType = adsk.fusion.DesignTypes.ParametricDesignType pathValue = adsk.core.ValueInput.createByString("anyString") design.userParameters.add("pathdwg", pathValue, "", "")
I need to save parameters for design (strings and doubles). As I understand UserParameters are made for this.
But this code doesn't work. It rises RuntimeError: 3.
I test so many variants that I have no more ideas...