CadUiRequestEventArgs
from OpenCAD2D import CadUiRequestEventArgs
class CadUiRequestEventArgs(System.EventArgs) ยท CadUiRequestEventArgs in the .NET reference
A request of a command to the window: open Properties, the Layer manager, Global settings, save, or show a drawing RECOVER opened.
Properties and fields
Answer
@property
def Answer(self) -> str | None
@Answer.setter
def Answer(self, value: str | None) -> None
Gets or sets what the window's dialog answered, for a command that goes on with it: for PASTESPEC the paste chosen, PASTECLIP, PASTEBLOCK, PASTEORIG or TEXT; for REDEFINE Yes or No; for QSELECT "Select objects" where Quick Select's button of that name closed it, so that the command asks the objects and shows it again; for GETFILED the path chosen, the value getfiled gives; null where it was cancelled or asks nothing.
Document
@property
def Document(self) -> CadDocument | None
Gets the document to show, for RECOVER the drawing recovered; null for the other requests.
Export
@property
def Export(self) -> CadExportJob | None
Gets the file EXPORT or -EXPORT asks for, the CadUiRequestEventArgs.Payload of those requests; null for every other request.
GetFile
@property
def GetFile(self) -> CadGetFileRequest | None
Gets what AutoLISP's getfiled asks, the CadUiRequestEventArgs.Payload of the GETFILED request; null for every other request.
Handled
@property
def Handled(self) -> bool
@Handled.setter
def Handled(self, value: bool) -> None
Gets or sets whether the window did what was asked; a LAYER not handled runs its prompts on the command line.
Image
@property
def Image(self) -> CadImageJob | None
Gets the image PNGOUT, JPGOUT or BMPOUT hands the window, the CadUiRequestEventArgs.Payload of those requests and of IMAGEOUT; null for every other request.
Name
@property
def Name(self) -> str
Gets what is asked: PROPERTIES, LAYER, OPTIONS, QSAVE, RECOVER, PLOT, PREVIEW, PAGESETUP, -PLOT to write a plot to a file, PNGOUT, JPGOUT or BMPOUT for the file of an image, IMAGEOUT to draw the image and write it, EXPORT or -EXPORT for the file of an export, or MATCHPROP for its Property Settings dialog, which sets the session's CadCommandSession.MatchProperties; or ALERT, a message AutoLISP's alert asks the window to show with an OK button, its text the CadUiRequestEventArgs.Payload: a window that shows it sets CadUiRequestEventArgs.Handled, and a command line with no window writes the text as lines; or GETFILED, the file dialog AutoLISP's getfiled asks the window to show, its CadGetFileRequest the CadUiRequestEventArgs.Payload (CadUiRequestEventArgs.GetFile): a window that shows it sets CadUiRequestEventArgs.Handled and puts the path chosen in CadUiRequestEventArgs.Answer.
Payload
@property
def Payload(self) -> Any
Gets what the command hands its dialog, which the window fills and closes with an action: a CadBlockDefinitionRequest for BLOCK, CadInsertRequest for INSERT, CadWriteBlockRequest for WBLOCK, CadAttributeDefinitionRequest for ATTDEF and CadAttributeEditRequest for EATTEDIT, CadAttributeManagerRequest for BATTMAN, CadAttributeValuesRequest for ATTDIA (the Edit Attributes dialog of INSERT), CadPurgeRequest for PURGE and CadGroupManagerRequest for CLASSICGROUP; for REDEFINE, which INSERT asks when the block chosen from another drawing has a namesake in this one, the name of the block, "Yes" in CadUiRequestEventArgs.Answer redefining it; for PURGEITEM, which PURGE asks before each object it purges, the question, "Yes" or "No" in CadUiRequestEventArgs.Answer, null stopping the purge; for ALERT the text of the message; null for the other requests.
Plot
@property
def Plot(self) -> CadPlotJob | None
Gets the plot PLOT, PREVIEW, PAGESETUP or -PLOT hands the window, the CadUiRequestEventArgs.Payload of those requests; null for every other request.