![]() |
Junction Diagram Automation Suite 1.5.1
An AutoCAD 2024 plugin for the manipulation and generation of junction box wiring diagrams
|
A document reactor that triggers drawing logic when a new AutoCAD document is activated. More...
Public Member Functions | |
DrawReactor (JBoxBuilderDialog *dialog) | |
Constructs a DrawReactor with a reference to the JBoxBuilderDialog. | |
virtual void | documentActivated (AcApDocument *pDoc) override |
Called when a document becomes active in AutoCAD. |
A document reactor that triggers drawing logic when a new AutoCAD document is activated.
This class listens for the documentActivated event in AutoCAD. Once triggered, it invokes the DrawJunctionBoxes() method using the user-specified dialog. It removes itself after the event fires.
|
inline |
Constructs a DrawReactor with a reference to the JBoxBuilderDialog.
dialog | The dialog containing user-selected junction box options. |
|
inlineoverridevirtual |
Called when a document becomes active in AutoCAD.
Executes the drawing operation and then self-deletes to prevent reuse.
pDoc | The activated AutoCAD document. |