Table of Contents

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

.NET

@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

.NET

@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

.NET

@property
def Document(self) -> CadDocument

Gets the document.

GroupName

.NET

@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

.NET

@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

.NET

@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

.NET

@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

.NET

@property
def IncludeUnnamed(self) -> bool
@IncludeUnnamed.setter
def IncludeUnnamed(self, value: bool) -> None

Gets or sets whether unnamed groups are listed (Include Unnamed).

Message

.NET

@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

.NET

@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

.NET

@property
def NewUnnamed(self) -> bool
@NewUnnamed.setter
def NewUnnamed(self, value: bool) -> None

Gets or sets whether a group New makes is unnamed.

Pick

.NET

@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

.NET

@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

.NET

def ChangeDescription(self) -> bool

Description: the group chosen given the Description typed.

Explode

.NET

def Explode(self) -> bool

Explode: the group chosen taken apart, its objects kept.

Rename

.NET

def Rename(self) -> bool

Rename: the group chosen given the Group Name typed.

Reorder

.NET

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

.NET

def Reverse(self) -> bool

Reverse Order: the objects of the group chosen put in the opposite order.

ToggleSelectable

.NET

def ToggleSelectable(self) -> bool

Selectable: whether a pick takes the group chosen whole, switched.