LispStartup
from OpenCAD2D.Lisp import LispStartup
class LispStartup(System.Object) ยท LispStartup in the .NET reference
What AutoCAD loads when a drawing is opened, in its order: acad.lsp from the support folders once for the session of the program (for every drawing with LispStartup.AcadLspAsDoc), acaddoc.lsp for every drawing, then, which AutoCAD has no step for, each .lsp file of the Lisps folder beside the program (CadSupportKind.Lisps), each file of the Startup Suite, and last the function S::STARTUP where a file defined one. An error in a step is written and the next step runs.
Constructors
__init__
def __init__(self) -> None
Properties and fields
AcadLspAsDoc
@property
def AcadLspAsDoc(self) -> bool
@AcadLspAsDoc.setter
def AcadLspAsDoc(self, value: bool) -> None
Gets or sets whether acad.lsp is loaded into every drawing opened, as AutoCAD's ACADLSPASDOC 1, and not once for the session. False by default.
StartupSuite
@property
def StartupSuite(self) -> System.Collections.Generic.IList[str]
Gets the files of the Startup Suite, each a full path, in the order they are loaded.
Methods
OnDocumentOpened
def OnDocumentOpened(self, session: CadCommandSession) -> None
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 LispStartup.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.