DimensionConstraints Object
Description
The DimensionConstraints object provides access to all the dimension sketch constraints ( objects) in a sketch and provides methods to create additional dimension sketch constraints.
Methods
| AddArcLength |
Method that creates a new arc length dimension on the input arc. This method will fail in the case where a driving dimension is specified and it will overconstrain the sketch. |
| AddDiameter |
Method that creates a new diameter dimension constraint on the input circle or arc. |
| AddEllipseRadius |
Method that creates a new dimension constraint defining the major or minor radius of the ellipse. This method will fail in the case where a driving dimension is specified and it will overconstrain the sketch. |
| AddOffset |
Method that creates a new offset dimension constraint between two entities. |
| AddOffsetSpline |
Creates a new offsetSpline dimension constraint between offset spline and the original spline. |
| AddRadius |
Method that creates a new radius dimension constraint on the input circle or arc. |
| AddTangentDistance |
Method that creates a new tangent distance dimension constraint between the two input entities. The input entities can consist of two circles or a line and a circle. Arcs can also be used in place of the circles. |
| AddThreePointAngle |
Method that creates a new angular dimension constraint between three points. |
| AddTwoLineAngle |
Method that creates a new angular dimension constraint between two lines. |
| AddTwoPointDistance |
Method that creates a new linear dimension constraint between two points. |
Properties
| Application |
Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned. |
| Count |
Property that returns the number of items in this collection. |
| Item |
Returns the specified sketch dimension constraint object from the collection. |
| Type |
Returns an ObjectTypeEnum indicating this object's type. |
Accessed From
DrawingSketch.DimensionConstraints,
PlanarSketch.DimensionConstraints,
PlanarSketchProxy.DimensionConstraints,
Sketch.DimensionConstraints,
SketchBlockDefinition.DimensionConstraints,
SketchBlockDefinitionProxy.DimensionConstraints
Samples
Version
Introduced in version 5