LISP Compatibility
Functions Unique to progeCAD LISP
The following functions are unique to the implementation of LISP included with
progeCAD:
|
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 progeCAD have enhanced features.
Osnap in progeCAD supports these additional entity snap modes:
|
Mode
|
Meaning
|
|
"po"
|
POint
|
|
"pla"
|
PLAnview (2D intersection)
|
|
"vis"
|
VISible (apparent intersection)
|
The functions ssget and ssadd in progeCAD 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
|
progeCAD supports P0 (cursor menu) and P1 through P16 (the pulldown menus). progeCAD 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 progeCAD
progeCAD does not support the following functions found in other CAD systems: arx, arxload, arxunload, autoarxload, entgetx, initdia, ssnamex, and tablet.
Tell me about...
Copying Code Examples
from the progeCAD Developer Reference
Programming Overview of LISP (LISt Processing) Language