Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I know how to create a sketch using the api, and i know how to set and get userParameters.
But i do not find the way to tie the two together.
width_param = design.userParameters.itemByName('Width')
length_param = design.userParameters.itemByName('Length')
width = width_param.value
length = length_param.value
Lets say i want to create a new sketch with a rectangle and have the width and length tied to the userparameter ...
When creating a Point3D 's with these width and length (which are doubles) there is no link to the userParameter.
I have also looked at sketchDimensions, that has a read-only 'parameter' which is what i need to set. ... but the setter of value takes in a double again ... ?
Solved! Go to Solution.