BabaCAD Forum

This forum is an archive: reading only, new posts and registrations are closed.

Missing Lisp commands

HPW

Missing Lisp commands

Apr 24, 2016, 07:05 UTC
Hello,
Not sure if the web-list of the Lisp-commands is complete/uptodate:
http://www.babacad.com/lisp/lisp_syntax.html

Some might missing (Not complete):

eval
read
set
atof
atoi
itoa
rtos
last

Regards

babadmin

Re: Missing Lisp commands

Apr 24, 2016, 12:15 UTC
You're almost right. Commands atof, rtos and read are not on the list, but there are few functions added in the last release of list module (2016):

COND
VL-REMOVE
VL-REMOVE-IF
VL-REMOVE-NTH
LAST
REVERSE
MEMBER
TBLNEXT
LOGAND
LOGIOR
~ (bitwise not operator)
ATOI
ITOA

Also you can call ssget "X" with filter. For example you can select just ARC entities in drawing:
(SETQ ss (SSGET "X" (list '(0 . "ARC")))

There is good example which have new functions, and that was my anwser to one croatian user, so it is on bosnian version of this forum (just scroll down to copy lisp function bcount). It's about counting all blocks in drawing

http://www.babacad.com/forum/index.php?topic=38.0
HPW

Re: Missing Lisp commands

Apr 24, 2016, 12:31 UTC
Hello,

You might think about Atoms-command, so the user can see what commands are defined.

Regards

Hans-Petet