Jump to content

Recommended Posts

Posted

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 .

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

  • avinashg

    13

  • Tharwat

    6

  • Dadgad

    2

  • neophoible

    2

Top Posters In This Topic

Posted
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.

Posted

How about just using entlast right after drawing the LINE? E.g.,

 

 
(Command "._line" p1  p2 "") 
(setq Line2Offset (entlast))

Posted

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)

Posted

You are very welcome. Glad to help.:)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...