Table of Contents

Class CadConstraintBars

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

The constraint bars of a document, as AutoCAD 2021 shows them: for each constrained object a bar of small icons, the bars of the objects selected and those of the objects a constraint was just made on shown (CONSTRAINTBARDISPLAY), any object's bar hidden or shown for good by CONSTRAINTBAR. What is hidden is kept with the document for the session, not in the file, as AutoCAD keeps it.

public sealed class CadConstraintBars
Inheritance
CadConstraintBars
Inherited Members

Methods

BarsFor(CadSpace, IReadOnlyCollection<string>, CadConstraintSettings)

The bars of a space to draw now: those of every object whose bar is shown for good, of the objects selected where the settings show the bars of the selection, and of the objects a constraint was just made on where they show those; an object hidden has none. The icons are those of the types the settings show.

Delete(CadSpace, int)

Takes one constraint away, as an icon of a bar is deleted; one undo step.

EndCommand()

Forgets the objects constraints were just made on: the bars of those not selected go.

HideAll(CadSpace)

Hides the bars of every constrained object of a space for good (the ribbon's Hide All).

HideBars(IEnumerable<string>)

Hides the bars of objects, selected or not, as CONSTRAINTBAR's Hide.

IsHidden(string)

Whether the bar of an object is hidden for good.

ResetBars(IEnumerable<string>)

Puts the bars of objects back as they were before they were shown or hidden, as CONSTRAINTBAR's Reset.

ShowAll(CadSpace)

Shows the bars of every constrained object of a space for good (the ribbon's Show All).

ShowBars(IEnumerable<string>)

Shows the bars of objects, selected or not, as CONSTRAINTBAR's Show.

Events

Changed

Raised when what the bars show changes without the drawing changing: a bar shown or hidden, a constraint just made.