Jump to content

Recommended Posts

Posted

What is the difference between these and when would you opt for one over the other?

 

(setq ss (ssget "X" '((0 . "text,mtext")(62 . 1))))

 

vs

 

(setq ss (ssget "X" (list (cons 0 "TEXT,MTEXT")(cons 62 1))))

 

vs

 

(sssetfirst nil (ssget "_x" '((0 . "TEXT,MTEXT") (62 . 1))))

 

 

 

Posted

Once you know the differences between the two functions QUOTE and LIST then you will know the answer by yourself. :) 

  • Like 1
Posted

Lee Mac explains the difference between the two functions QUOTE and LIST better than AutoCAD's help: http://www.lee-mac.com/quote.html

The sssetfirst (AutoLISP) function selects the objects instead of simply creating a selection set.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...