Table of Contents

Namespace OpenCAD2D.Lisp

Classes

LispCatchAllError

What vl-catch-all-apply returns when the function it called failed: the error as a value, so that a routine can go on. vl-catch-all-error-p tells it from a result, and vl-catch-all-error-message gives the text. It prints as #<%catch-all-apply-error%>.

LispCons

A cons cell, the pair every list is made of: (1 2 3) is a cell holding 1 whose cdr is the cell holding 2, and so on to nil, and (1 . 2) is a cell whose cdr is the number 2. A cell never changes once made, so a list shared by two variables cannot be altered through one of them.

LispEntityName

The name of an entity in a drawing, what (entlast) and (car (entsel)) return. It prints as <Entity name: 1d21fb9b8d0>, and two names of the same handle are equal.

LispException

An error of an AutoLISP evaluation. Message is the text AutoCAD writes after ; error: (bad argument type: numberp: "a"). A hard error, the stack limit, is the one neither error nor vl-catch-all-apply gets to see.

LispFunction

A function value, what AutoLISP's type calls a SUBR: a built-in (CAR), a lambda, or one made by defun. It prints as #<SUBR @000001d38254e2a0 NAME> with an address that is made up and stays the same for the life of the function.

LispInterpreter

The functions only AutoCAD can run: ObjectARX, the Visual LISP compiler and projects, AutoCAD's command table and registry, its debugger and editor. They are defined, so that a routine written for AutoCAD finds the name, and calling one is an error that says so, ARXLOAD is not available: ObjectARX applications load only in AutoCAD., which vl-catch-all-apply catches like any other. Where AutoCAD names a value for a failed load ((arxload "app" nil)), that value is given, as it is when AutoCAD cannot load the application. Which of them exist before (vl-load-com) was measured in AutoCAD 2021 (probe g8): all but the registration and product keys of ActiveX.

LispResult

What running AutoLISP text gave: the value, and the text AutoCAD would have put on the command line.

LispSelectionSet

A selection set, what (ssget) returns: the handles of the entities picked. It prints as <Selection set: 5> with a number that is made up.

LispStartup

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 AcadLspAsDoc), acaddoc.lsp for every drawing, then, which AutoCAD has no step for, each .lsp file of the Lisps folder beside the program (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.

LispSymbol

A symbol of an AutoLISP interpreter. Its name is upper case (abc, AbC and ABC are one symbol), and it has one value cell, which holds a variable's value and a function alike: AutoLISP has no separate function slot, so (setq car nil) removes CAR. The ones AutoCAD registers (vla-get-Name, acRed) print in the case it registers them in once (vl-load-com) has run; the symbol is the one the reader finds in any case.