Lee Mac Posted July 30, 2010 Posted July 30, 2010 (sssetfirst nil (ssget "_X" '((0 . "INSERT") (10 . 0.0 0.0 0.0)))) Quote
Tharwat Posted July 30, 2010 Posted July 30, 2010 Hi all! How can I select every object that is in a specific point? To be more specific... I have blocks, so they have just one point. And I want to select a block that point is i.e. (0,0) or (x,y). So how can I do that? Thanks any help Try the following to be saved with a variable ... (setq BLK (ssget "_x" '((0 . "INSERT")(10 0.0 0.0 0.0)))) Regards, Quote
hunszab Posted August 2, 2010 Author Posted August 2, 2010 Hi all! I have 2 points (or n points) and I want to create an LWPOLYLINE. How can I do that? I've tried this: (entmake (list (cons 0 "LWPOLYLINE") (cons 8 "0") (cons 10 point1) (cons 10 point2) ) ) but doesnt work... Thanks any help!! Quote
hunszab Posted August 3, 2010 Author Posted August 3, 2010 Thanks! It's good. Now I have another problem. I have a macro which contains a function, when I call it where will I get that it returns? On the prompt or system variable or where? Because it always returns nil... Any help ? Quote
Tharwat Posted August 3, 2010 Posted August 3, 2010 Your question is not a clear at all my friend ...... Give a direct question. Quote
Lee Mac Posted August 3, 2010 Posted August 3, 2010 Now I have another problem. I have a macro which contains a function, when I call it where will I get that it returns? On the prompt or system variable or where? Because it always returns nil... Any help ? The never-ending stream of questions.... The function call itself will provide the function return, i.e. (myfunction) ==> Return Quote
hunszab Posted August 4, 2010 Author Posted August 4, 2010 I try to be specific. I have a dwg file, macro included. In the macro there are a lot of function. For example, when I call the function I will return the result like I would have called an autolisp function or I return the result in a specific system variable? (command "-VBARUN" "mymacroname.mymacrofunctionname") I ask this, because when I use this command it always return nil, but it should have return something else.. I hope I was clear enough. thanks any help Quote
Tharwat Posted August 4, 2010 Posted August 4, 2010 When you use Lisp in a macro, there is no need for (command) .... just write the name of the command directly. things like : ^C^C_-VBARUN.......... THE REST ... But if you use a complete lisp in a macro, it is better to call only the name of the Lisp program. Regards Quote
hunszab Posted August 4, 2010 Author Posted August 4, 2010 thanks, I've allready found the solution. Quote
hunszab Posted August 6, 2010 Author Posted August 6, 2010 Hi! I have the following problem: I want to build a menu that has 2 popup_list and I want to bind the first popup_list to a dotted list first , the second popup_list to the dotted list second part. I.G: I have this list "mylist" : ( ( 1 . "first") (2 . "second")) how should I modify my command?---> (mapcar 'add_list mylist) thanks any help!!! Quote
Lee Mac Posted August 6, 2010 Posted August 6, 2010 Many ways to approach it, one of which may be: (mapcar '(lambda ( key lst ) (start_list key) (mapcar 'add_list lst) (end_list) ) '("key1" "key2") (list (mapcar 'car mylist) (mapcar 'cdr mylist)) ) Quote
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.