Jump to content
Shablab

Import multiple Blocks from CSV/txt file with coordinates

Recommended Posts

Tomislav
46 minutes ago, dlanorh said:

(setq a (10 20 30)) => ;error: bad function: 10. This is looking for a function called 10 (defun 10 ( a b / )......) with two parameters to pass in (setq a '(10 20 30)) => (10 20 30) (type a) => LIST but (setq b 20) (setq a '(10 b 30)) => (10 B 30) (type a) => LIST ; ' means literal b is not evaluated (setq a (list 10 b 30)) => (10 20 30) (type a) => LIST ;Now b is evaluated

i've wrote this down as a reminder, now it's pretty clearer, thanx again for the effort to explain it 👍 

Share this post


Link to post
Share on other sites
dlanorh

No problem :thumbsup:

Share this post


Link to post
Share on other sites
BIGAL

Just a extra (kbn) this would be looked at as if you have a defun called kbn because you have enclosed it in brackets. This is the way you call a defun without passing any variables.

Share this post


Link to post
Share on other sites
Lee Mac
On 4/20/2019 at 6:23 PM, Tomislav said:

i still don't quite get it why list,list,list instead of  '(("Blocks" (kbn)) but must work on it

 

My article describing The Apostrophe and the Quote Function should shed some light on this and help with your understanding.

 

On 4/20/2019 at 6:03 PM, dlanorh said:

Try


    (Steal "D:\\Geodezija\\Kartografska zbirka\\1000_BLOKOVI.dwg"
           (list (list "Blocks" (list kbn)))
    ) ;_  Steal

 

 

Many thanks for assisting in my absence @dlanorh 🍺

Share this post


Link to post
Share on other sites
Tomislav

Thanks to you too Lee, ruler of the Lisp land 😀👍

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...