(command-s [cmd [arguments...]])


Runs the specified progeCAD command.


With this function, you can use any progeCAD command within a LISP program. Any of the arguments that follow are used for that command. Any input needed should be stored as variables using setq. Points should be assigned to variables after using the function getpoint.

Some commands continue past the points you have specified. To end or exit a command, type a space within quotes to represent pressing Enter.

Examples

Code Results
(command-s "arc" '(0 0) '(2 4) '(8 20)) Uses preset points.
(command-s "arc" p1 p2 p3) Uses preset variables.
(command-s "line" p1 p2 p3 " ") Uses a space to end the command.
Tell me about...

(command cmd [arguments] ...))

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language