Author Topic: Missing Lisp commands  (Read 7661 times)

HPW

  • Newbie
  • *
  • Posts: 30
    • View Profile
Missing Lisp commands
« on: April 24, 2016, 09:05:19 am »
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

  • Administrator
  • Full Member
  • *****
  • Posts: 142
    • View Profile
Re: Missing Lisp commands
« Reply #1 on: April 24, 2016, 02:15:18 pm »
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

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Missing Lisp commands
« Reply #2 on: April 24, 2016, 02:31:26 pm »
Hello,

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

Regards

Hans-Petet