LISP Compatibility

Functions Unique to IntelliCAD® 2001 LISP

The following functions are unique to the implementation of LISP included with IntelliCAD® 2001:

Function Comments
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.

LISP-Compatible Functions with Enhanced Features

The following LISP functions in IntelliCAD have enhanced features.

Osnap in IntelliCAD supports these additional entity snap modes:

Mode Meaning
"po" POint
"pla" PLAnview (2D intersection)
"vis" VISible (apparent intersection)

The functions ssget and ssadd in IntelliCAD recognize these additional selection set parameters:

Mode Meaning Points Example
"CC" Crossing Circle point1 point2 (ssget "CC" '(1 1) '(2 2))
"O" Outside points-list (ssget "O" ptlist)
"OC" Outside Circle point1 point2 (ssget "OC" '(1 1) '(2 2))
"OP" Outside Polygon points-list (ssget "OP" ptlist)
"PO" POint point1 (ssget "PO" '(1 1))

Functions Partially Compatible with LISP in Other CAD Systems

The following function is partially compatible with the LISP found in other CAD systems:

Function Comments
menucmd IntelliCAD supports P0 (cursor menu) and P1 through P16 (the pulldown menus). IntelliCAD does not support A (aux menus), B (button menus), I (icon menus), M (diesel expressions), S (screen menu), or T (tablet menus).

Functions Not Supported by IntelliCAD

IntelliCAD does not support the following functions found in other CAD systems: arx, arxload, arxunload, autoarxload, dictadd, dictnext, dictremove, dictrename, dictsearch, entgetx, initdia, namedobjdict, ssnamex, and tablet.

Tell me about...

Copying Code Examples from the IntelliCAD® 2001 Programmer’s Reference

Programming Overview of LISP (LISt Processing) Language