What's new

Scripting sketch dimensions with named parameters

Stuart

Senior Member
I'm making a part with many configurations. For each configuration a parameter value will be changed.

In the script, I've created the part, the parameter that will change with each configuration, and a feature.

In the feature there is a sketch with a circle. I want the dimension of the circle to be set to the parameter so that the size of the circle is different for each configuration.

I can add a dimension, but I don't see any way to apply the named parameter to the dimension.

How do you use named parameters on sketch object dimensions?
 

Stuart

Senior Member
I found the answer, I think.

After adding the dimension, you get the parameter by 'Dn' and set the equation to the name of the parameter.
 
Top