alijahed Posted June 23, 2010 Posted June 23, 2010 Hi All, Really confused! Why this doesn't work?! (defun c:test () (setq p2 1000.0) (command "_dimlinear" '(0 0 0) '(p2 0 0) '(0 0 0)) ) but this is working: (defun c:test () (command "_dimlinear" '(0 0 0) '(1000.0 0 0) '(0 0 0)) ) Tanks in advance Quote
MSasu Posted June 23, 2010 Posted June 23, 2010 You cannot use a variable name in a quoted list since you add the quote to avoid that list to be evaluated as a statement - use LIST function instead to construct the point: (defun c:test () (setq p2 1000.0) (command "_dimlinear" '(0 0 0) (list p2 0 0) '(0 0 0)) ) Regards, Quote
Tharwat Posted June 23, 2010 Posted June 23, 2010 Hi All, Really confused! Why this doesn't work?! but this is working: Tanks in advance Give this a try. (defun c:test () (setq p2 100.0) (command "_dimlinear" '(0.0 0.0 0.0) (list p2 0.0 0.0) '(0.0 [color="Red"]10.0[/color] 0.0)) ) Just an idea. Best Regards Tharwat Quote
MSasu Posted June 23, 2010 Posted June 23, 2010 (command "_dimlinear" '(0.0 0.0 0.0) (list p2 0.0 0.0) '(0.0 10.0 0.0)) That make no sense. The third point argument set dimension line’s location – I’m afraid that by proposing to move it on Y axis will not serve OP issue. Regards, Quote
Tharwat Posted June 23, 2010 Posted June 23, 2010 That make no sense. The third point argument set dimension line’s location – I’m afraid that by proposing to move it on Y axis will not serve OP issue. Regards, your opinion is highly appreciated. But that was just an idea . And when implement the program, dimension will cover the line with no sense. that's all. Thanks Quote
Lee Mac Posted June 23, 2010 Posted June 23, 2010 Explanation of the Apostrophe: http://www.cadtutor.net/forum/showpost.php?p=258390&postcount=20 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.