CadPurgeRequest
from OpenCAD2D import CadPurgeRequest
class CadPurgeRequest(System.Object) ยท CadPurgeRequest in the .NET reference
The Purge dialog of PURGE, as data its command and the window share: the named objects nothing uses, by kind, the lines and arcs of no length and the texts of no content; and, for its Find Non-Purgeable Items mode, the named objects in use with the reasons. CadPurgeRequest.Purge purges while the dialog stays open, each purge one undo step, and reads the drawing again. A drawing with the layers OLD_GRID and TMP unused lists them under Layers (2).
Properties and fields
Action
@property
def Action(self) -> CadDialogAction
@Action.setter
def Action(self, value: CadDialogAction) -> None
Gets or sets what the window's dialog was closed with: Cancel for Close, Select objects; Cancel until set.
ConfirmEach
@property
def ConfirmEach(self) -> bool
@ConfirmEach.setter
def ConfirmEach(self, value: bool) -> None
Gets or sets whether each object is asked about before it is purged (Confirm each item to be purged); true until set.
Document
@property
def Document(self) -> CadDocument
Gets the document.
EmptyText
@property
def EmptyText(self) -> int
Gets how many texts and MTEXTs of no content it holds.
InUse
@property
def InUse(self) -> System.Collections.Generic.IReadOnlyList[CadPurgeCategory]
Gets the kinds of named object, each with those of it in use, the reasons given.
PurgeEmptyText
@property
def PurgeEmptyText(self) -> bool
@PurgeEmptyText.setter
def PurgeEmptyText(self, value: bool) -> None
Gets or sets whether a purge erases the texts of no content too.
PurgeNested
@property
def PurgeNested(self) -> bool
@PurgeNested.setter
def PurgeNested(self, value: bool) -> None
Gets or sets whether what a purge leaves unused is purged too, again until nothing more is (Purge nested items): a block purged that held the only INSERT of another purges that one as well. True until set.
PurgeZeroLength
@property
def PurgeZeroLength(self) -> bool
@PurgeZeroLength.setter
def PurgeZeroLength(self, value: bool) -> None
Gets or sets whether a purge erases the geometry of no length too.
Purgeable
@property
def Purgeable(self) -> System.Collections.Generic.IReadOnlyList[CadPurgeCategory]
Gets the kinds of named object, each with those of it nothing uses, in alphabetical order of the kinds.
Selected
@property
def Selected(self) -> CadPurgeItem
@Selected.setter
def Selected(self, value: CadPurgeItem | None) -> None
Gets or sets the object in use whose objects Select Objects selects.
ZeroLength
@property
def ZeroLength(self) -> int
Gets how many lines, arcs, circles and polylines of no length the drawing holds.
Methods
Purge
def Purge(self, items: System.Collections.Generic.IReadOnlyList[CadPurgeItem]) -> int
Purges objects of CadPurgeRequest.Purgeable, with the geometry of no length and the empty texts where the options say so, as one undo step, each asked about first where CadPurgeRequest.ConfirmEach says so; the lists read again.