CadGroupManagerRequest
from OpenCAD2D import CadGroupManagerRequest
class CadGroupManagerRequest(System.Object) ยท CadGroupManagerRequest in the .NET reference
The Object Grouping dialog of CLASSICGROUP, as data its command and the window share: the groups of the drawing, the one chosen, the name and description typed, and the options of Create Group. A button ending in <, as New <, closes the dialog with CadDialogAction.SelectObjects and its words in CadGroupManagerRequest.Pick: the command asks on the command line, then shows the dialog again. Rename, Description, Explode, Selectable and Re-Order change the drawing while the dialog stays open; OK keeps every change, Cancel takes them all back, as one undo step.
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: OK, Cancel or Select objects; Cancel until set.
Description
@property
def Description(self) -> str
@Description.setter
def Description(self, value: str | None) -> None
Gets or sets the Description typed: that of a new group, or the one Description gives the group chosen.
Document
@property
def Document(self) -> CadDocument
Gets the document.
GroupName
@property
def GroupName(self) -> str
@GroupName.setter
def GroupName(self, value: str | None) -> None
Gets or sets the Group Name typed: the name of a new group, or the new name Rename gives the group chosen.
Groups
@property
def Groups(self) -> System.Collections.Generic.IReadOnlyList[CadGroupRow]
Gets the groups of the drawing, named and unnamed, in ordinal order of their names, letters of either case alike.
HighlightCount
@property
def HighlightCount(self) -> int
@HighlightCount.setter
def HighlightCount(self, value: int) -> None
Gets or sets how many objects Highlight shows; nought or less for every one from CadGroupManagerRequest.HighlightFrom on.
HighlightFrom
@property
def HighlightFrom(self) -> int
@HighlightFrom.setter
def HighlightFrom(self, value: int) -> None
Gets or sets the first position Highlight shows; nought for the whole group.
IncludeUnnamed
@property
def IncludeUnnamed(self) -> bool
@IncludeUnnamed.setter
def IncludeUnnamed(self, value: bool) -> None
Gets or sets whether unnamed groups are listed (Include Unnamed).
Message
@property
def Message(self) -> str | None
Gets what the last change or pick said where it was refused, as "A group with this name already exists."; null where it was made.
NewSelectable
@property
def NewSelectable(self) -> bool
@NewSelectable.setter
def NewSelectable(self, value: bool) -> None
Gets or sets whether a group New makes is selectable; true until set.
NewUnnamed
@property
def NewUnnamed(self) -> bool
@NewUnnamed.setter
def NewUnnamed(self, value: bool) -> None
Gets or sets whether a group New makes is unnamed.
Pick
@property
def Pick(self) -> str
@Pick.setter
def Pick(self, value: str | None) -> None
Gets or sets the button ending in < the dialog was closed with: Find Name, Highlight, New, Remove or Add, or Order Highlight for Order Group's Highlight, which steps through the members of the group chosen on the canvas one at a time, "Object 0 of 11 [Next/Previous/eXit]:", until eXit or Enter.
Selected
@property
def Selected(self) -> str | None
@Selected.setter
def Selected(self, value: str | None) -> None
Gets or sets the name of the group chosen in the list; null for none.
Methods
ChangeDescription
def ChangeDescription(self) -> bool
Description: the group chosen given the Description typed.
Explode
def Explode(self) -> bool
Explode: the group chosen taken apart, its objects kept.
Rename
def Rename(self) -> bool
Rename: the group chosen given the Group Name typed.
Reorder
def Reorder(self, from_: int, /, to: int, count: int) -> bool
Re-Order: objects of the group chosen moved to another position, as Order Group's Re-Order moves them: the group A, B, C, D with 1 to 3, 1 object, reads A, C, D, B.
Reverse
def Reverse(self) -> bool
Reverse Order: the objects of the group chosen put in the opposite order.
ToggleSelectable
def ToggleSelectable(self) -> bool
Selectable: whether a pick takes the group chosen whole, switched.