Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a block with a lot of paramters

Status
Not open for further replies.

Jooky68

Programmer
Jul 10, 2002
231
US
In autolisp, is there a way when creating a block to use a list instead of listing all the objects to select for the block. For instance right now I have

(command "block" yes "0,0" pt1 pt2 pt3 pt4 pt5 ... pt20 "")

Is there a way that I can make a list and just put it in there as the objects to select. I tried the append statment and it didnt work. This is the append statment that I used

1st: (setq bracing (list (entlast)))
and than all the following i have

(setq bracing (append bracing (list (entlast))))


But it doesnt work. Does anyone PLEASE have an answer to this? Thank you in advance for any responses
 
Am I able to add to my selection in later commands with ssget?
 
I got it working, couldnt get it working wtih ssget though. The way that I did it was created my selection set

(setq sel-set (entsel (entlast))

than after the other entities were drawn i would do this

(setq sel-set (ssadd (entlast) sel-set))


and that did what I needed. Just in case anyone was interested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top