Junction Diagram Automation Suite 1.5.1
An AutoCAD 2024 plugin for the manipulation and generation of junction box wiring diagrams
Loading...
Searching...
No Matches
DrawReactor Class Reference

A document reactor that triggers drawing logic when a new AutoCAD document is activated. More...

Inheritance diagram for DrawReactor:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ DrawReactor()

DrawReactor::DrawReactor ( JBoxBuilderDialog * dialog)
inline

Constructs a DrawReactor with a reference to the JBoxBuilderDialog.

Parameters
dialogThe dialog containing user-selected junction box options.

Member Function Documentation

◆ documentActivated()

virtual void DrawReactor::documentActivated ( AcApDocument * pDoc)
inlineoverridevirtual

Called when a document becomes active in AutoCAD.

Executes the drawing operation and then self-deletes to prevent reuse.

Parameters
pDocThe activated AutoCAD document.

The documentation for this class was generated from the following file:
  • src/JBoxApp.cpp