- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using the API to sketch many circles like this:
circle = sketch.sketchCurves.sketchCircles.addByCenterRadius(center, 10)
However, what I actually want to do is set each circle's radius to equal a user parameter called "userRadius". If I was doing this in the UI, I would sketch the circle and enter the string "userRadius" into the radius input box, but the addByCenterRadius function does not accept a string.
I'm aware that you can use the ModelParameters object to get an individual parameters by calling "itemByName", but this isn't useful at all because I do not know the name of the parameter. And I can't find a way to get the parameter name ("d1" "d22" "d76" etc) from the circle object.
How do I create an object and set its dimensions to equal a user parameter in the API? How do I create a model parameter? How do I find the model parameters associated with a particular object if all I have is the object as a variable?
Thanks!
Jerry
Solved! Go to Solution.