Jump to content

Recommended Posts

Posted

Hello to all,

 

i need to draw many polyline and then once the offset of all.

 

Something like this draft:

 

(defun c:PolyOFF (var...)

(command "pline"); draw the polyline point by point, using the basic command of autocad.

(command "offset" "last"); offset polyline just drawn, using the basic command of autocad.

(command "erase" "previous"); erase the polyline drawn in the beginning.

)

 

Thanks for any help.

Regards.

Posted

For a single run

 

(defun c:test  nil
     (command "pline")
     (while (eq 1 (logand 1 (getvar 'cmdactive)))
           (command pause))
     (command "offset" "_erase" "Y" pause (entlast) pause)
     )

Posted

It works fine!

Thanks a lot!

Posted
It works fine!

Thanks a lot!

 

Good for you marmo.

Glad I could help :)

 

Cheers

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