avinashg Posted August 27, 2012 Author Share Posted August 27, 2012 First routine again prompts to select the lines.Can the same thing be done in background I mean without prompting. (defun c:drawLine (p1 p2 p3 p4) (Command "._line" p1 p2 "") ;; <=== p1,p2,p3 and p4 are points created using polar (Command "._line" p3 p4 "") ) Can I select only first line and do offset . Quote Link to comment Share on other sites More sharing options...
avinashg Posted August 27, 2012 Author Share Posted August 27, 2012 First routine again prompts to select the lines.Can the same thing be done in background I mean without prompting. (defun c:drawLine (p1 p2 p3 p4) (Command "._line" p1 p2 "") ;; <=== p1,p2,p3 and p4 are points created using polar (Command "._line" p3 p4 "") ) Can I select only first line and do offset . Is any solution available for this. Quote Link to comment Share on other sites More sharing options...
neophoible Posted August 27, 2012 Share Posted August 27, 2012 How about just using entlast right after drawing the LINE? E.g., (Command "._line" p1 p2 "") (setq Line2Offset (entlast)) Quote Link to comment Share on other sites More sharing options...
avinashg Posted August 31, 2012 Author Share Posted August 31, 2012 Thanks Neophoible and Tharwat Here how i solved it. (command "._pline") (foreach item lst (command item)) (command "_c") (setq Line2Offset (entlast)) (vla-offset (vlax-ename->vla-object Line2Offset) -0.1) Quote Link to comment Share on other sites More sharing options...
neophoible Posted August 31, 2012 Share Posted August 31, 2012 You are very welcome. Glad to help. 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.