Class CadConstraintSettings
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
The settings of AutoCAD 2021's Constraint Settings dialog and of the variables behind them (CONSTRAINTBARMODE, CONSTRAINTBARDISPLAY, CONSTRAINTINFER, CONSTRAINTNAMEFORMAT, CCONSTRAINTFORM, DYNCONSTRAINTMODE, CONSTRAINTSOLVEMODE, PARAMETERCOPYMODE), and the tolerances and the order AUTOCONSTRAIN works by. They stay with the session.
public sealed class CadConstraintSettings
- Inheritance
-
CadConstraintSettings
- Inherited Members
Properties
- AutoAngle
The angle within which AUTOCONSTRAIN takes two directions for one, in degrees.
- AutoDistance
The distance within which AUTOCONSTRAIN takes two points for one, in drawing units.
- AutoRules
The types AUTOCONSTRAIN tries and the order it tries them in.
- BarDisplay
CONSTRAINTBARDISPLAY: 0 shows no constraint bar, 1 shows the bars of the objects that are selected, 2 those of the objects a constraint was just applied to, 3 both. AutoCAD 2021 starts at 3.
- BarMode
The constraint types a bar shows, as the bits of CONSTRAINTBARMODE (4095 for all twelve).
- CopyMode
PARAMETERCOPYMODE: what a copy of constrained objects keeps; kept as AutoCAD keeps it.
- DynamicMode
DYNCONSTRAINTMODE: whether dynamic dimensional constraints are shown (1) or hidden (0).
- Form
CCONSTRAINTFORM: the form a new dimensional constraint is made in: 0 dynamic, 1 annotational.
- Infer
CONSTRAINTINFER: whether a coincident, horizontal or vertical constraint is inferred where a line or arc is drawn.
- NameFormat
CONSTRAINTNAMEFORMAT: the words a dimensional constraint shows: 0 its name, 1 its value, 2 its name and expression.
- PerpendicularAtIntersection
Whether a perpendicular is applied only where the objects meet (the AutoConstrain tab's box).
- SolveMode
CONSTRAINTSOLVEMODE: how an edit is solved; kept as AutoCAD keeps it, the presenter always solves.
- TangentAtIntersection
Whether a tangent is applied only where the objects touch at an end of one of them (the AutoConstrain tab's box).
- Transparency
The bar transparency of the Geometric tab, in percent.
Methods
- Clone()
A copy the Constraint Settings dialog changes.
- ShowsBarOf(CadConstraintType)
Whether a bar shows the constraints of a kind.