Kowal Posted December 18, 2014 Share Posted December 18, 2014 Hi. Why not work variable in ssget function? (setq lay (cdr (assoc 8 (entget (car (entsel)))))) (setq collection (ssget '((0 . "*POLYLINE") (8 . lay)))) Quote Link to comment Share on other sites More sharing options...
CheSyn Posted December 18, 2014 Share Posted December 18, 2014 You can use a list: (setq collection (ssget (list '(0 . "*POLYLINE") (cons 8 lay) )) ) Quote Link to comment Share on other sites More sharing options...
Tharwat Posted December 18, 2014 Share Posted December 18, 2014 Another (setq lay (assoc 8 (entget (car (entsel))))) (setq collection (ssget (list '(0 . "*POLYLINE") lay))) Quote Link to comment Share on other sites More sharing options...
Kowal Posted December 18, 2014 Author Share Posted December 18, 2014 Thanks for the reply. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted December 18, 2014 Share Posted December 18, 2014 Thanks for the reply. Did you know why your way of building the filter did not work ? Quote Link to comment Share on other sites More sharing options...
Kowal Posted December 18, 2014 Author Share Posted December 18, 2014 I do not know. Can you explain? Quote Link to comment Share on other sites More sharing options...
Tharwat Posted December 18, 2014 Share Posted December 18, 2014 I do not know. Can you explain? That's all because of the quote ( ' ) function , cause this function does not allow you to evaluate the value that is after this function . Read about the FUNCTION Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.