Table of Contents

Method OnDocumentOpened

Namespace
OpenCAD2D.Lisp
Assembly
OpenCAD2D.Core.dll

OnDocumentOpened(CadCommandSession)

Runs the startup of a drawing in its session: acad.lsp found along the document's search path (the first time this is called, or every time with AcadLspAsDoc), acaddoc.lsp, every .lsp file directly in the Lisps folder, the Startup Suite and S::STARTUP. What the files write goes to the session's history; a file not found is a ; error: LOAD failed: line for a file of the Startup Suite and no line for the two named files. A file of the Lisps folder that errors is written and the next one loads; a compiled .fas or .vlx there is the compiled-AutoLISP refusal, once for the drawing.

public void OnDocumentOpened(CadCommandSession session)

Parameters

session CadCommandSession

The session of the drawing just opened.

Exceptions

ArgumentNullException

Thrown when the session is null.