Understanding AutoLISP compatibility

IntelliCAD adds LISP functionality that you will find useful. The following table lists functions that are unique to IntelliCAD LISP.

Additional IntelliCAD LISP functions

Unique LISP function Definition
(log10) Returns log base 10.
(lpad) Pads a text string with spaces to the left.
(rpad) Pads a text string with spaces to the right.
(tan) Returns the tangent.
(trim) Trims spaces from a string.

Not all IntelliCAD LISP functions are completely compatible with AutoLISP functions. The following table identifies IntelliCAD LISP functions that are partially compatible with AutoLISP functions.

Partially compatible LISP functions

LISP function Description
(menucmd) Supports P0 (cursor menu) and P1 through P16 (the pull-down menus), but does not support A (aux menus), B (button menus), I (icon menus), M (diesel expressions), S (screen menu), or T (tablet menus).
(osnap) Supports an additional entity snap, pla, for planview (two- dimensional intersection).
(print1) Does not support Unicode characters, such as \U+00B0 (the degree symbol) and M+Nxxxx (multibyte Unicode sequences).
(ssget) and (ssadd) Supports additional selection modes:
CC = Crossing Circle
O = Outside
OC = Outside Circle
OP = Outside Polygon
PO = POint