The ConstrainedSketchDimension object stores the dimensions associated with a sketch.
import sketch mdb.models[name].sketches[name].dimensions[i]
This method constructs a ConstrainedSketchDimension object between two ConstrainedSketchGeometry objects, with the given angle between them.
mdb.models[name].sketches[name].AngularDimension
Required arguments
A ConstrainedSketchGeometry object specifying the first line.
A ConstrainedSketchGeometry object specifying the second line.
A pair of Floats specifying the location of the dimension text.
Optional arguments
A Float specifying the angle between the two lines.
A Boolean specifying whether the created dimension enforces the above value or if it simply measures the angle between two lines.
Return value
A ConstrainedSketchDimension object (None if the dimension cannot be created).
Exceptions
This method constructs a ConstrainedSketchDimension object between two vertices. A horizontal dimension indicates the horizontal distance along the X-axis between two vertices.
mdb.models[name].sketches[name].HorizontalDimension
Required arguments
A ConstrainedSketchVertex object specifying the first endpoint.
A ConstrainedSketchVertex object specifying the second endpoint.
A pair of Floats specifying the location of the dimension text.
Optional arguments
A Float distance between the two vertices.
A Boolean specifying whether the created dimension enforces the above value or if it simply measures the distance between the two vertices.
Return value
A ConstrainedSketchDimension object (None if the dimension cannot be created).
Exceptions
This method constructs a ConstrainedSketchDimension object between two vertices. An oblique dimension indicates the distance between two vertices.
mdb.models[name].sketches[name].ObliqueDimension
Required arguments
A ConstrainedSketchVertex object specifying the first endpoint.
A ConstrainedSketchVertex object specifying the second endpoint.
A pair of Floats specifying the location of the dimension text.
Optional arguments
A Float specifying the distance between the two ConstrainedSketchVertex objects.
A Boolean specifying whether the created dimension enforces the above value or if it simply measures the distance between the two vertices.
Return value
A ConstrainedSketchDimension object (None if the dimension cannot be created).
Exceptions
This method constructs a ConstrainedSketchDimension object on a circular or elliptical arc. A radial dimension indicates the radius of an arc or circle or the major or minor radius of an ellipse.
mdb.models[name].sketches[name].RadialDimension
Required arguments
A ConstrainedSketchGeometry object specifying the circular or elliptical arc.
A pair of Floats specifying the location of the dimension text.
Optional arguments
A Float specifying the radius of the arc, circle or ellipse.
A Boolean specifying whether the created dimension enforces the above value or if it simply measures the angle between two lines.
A Float specifying the major Radius if curve is an ellipse. This is mutually exclusive with value and minorRadius.
A Float specifying the minor Radius if curve is an ellipse. This is mutually exclusive with value and majorRadius.
Return value
A ConstrainedSketchDimension object (None if the dimension cannot be created).
Exceptions
This method constructs a ConstrainedSketchDimension between two vertices. A vertical dimension controls the vertical distance along the Y-axis between two vertices.
mdb.models[name].sketches[name].VerticalDimension
Required arguments
A ConstrainedSketchVertex object specifying the first endpoint.
A ConstrainedSketchVertex object specifying the second endpoint.
A pair of Floats specifying the location of the dimension text.
Optional arguments
A Float specifying the angle between the two lines.
A Boolean specifying whether the created dimension enforces the above value or if it simply measures the angle between two lines.
Return value
A ConstrainedSketchDimension object (None if the dimension cannot be created).
Exceptions
This method constructs a ConstrainedSketchDimension object between two ConstrainedSketchGeometry, or aConstrainedSketchVertex and ConstrainedSketchGeometry object. A distance dimension specifies the shortest distance between two entities.
mdb.models[name].sketches[name].DistanceDimension
Required arguments
A ConstrainedSketchVertex object or ConstrainedSketchGeometry object.
A ConstrainedSketchVertex object or ConstrainedSketchGeometry object.
A pair of Floats specifying the location of the dimension text.
Optional arguments
A Float specifying the angle between the two lines.
A Boolean specifying whether the created dimension enforces the above value or if it simply measures the angle between two lines.
Return value
A ConstrainedSketchDimension object (None if the dimension cannot be created).
Exceptions