Jump to content

Recommended Posts

Posted

OFFSET.gif

 

(defun c:tt( / en en1 pt p1 p2 p3 p4 dist)
 (setvar 'osmode 0)
   (setq dist (getdist (strcat "Enter the offset distance:<"
                             (rtos (getvar "OFFSETDIST")) ">")))
 (if (null dist)
   (setq dist (getvar "offsetdist"))
   (setvar "offsetdist" dist)  )
 (while
 (setq en (car(entsel"\nPlease select object:")))
(command "offset" dist en  pause "")
(setq en1 (entlast))
(setq p1(vlax-curve-getstartpoint en)
        p2(vlax-curve-getendpoint en) 
        p3(vlax-curve-getstartpoint en1)
        p4(vlax-curve-getendpoint en1))  
(command ".line" p1 p3 ""  ".line" p2 p4 ""))
 (setvar 'osmode 4133)
 (princ)
)

 

This code can't Multiple choice ,For cricle, rectangular,Closed polyline support is not perfect.

Posted

THS,Lee,I test, Find It's not support "circle" and "arc", And, for closed polyline have a problem.

 

sshot-28.png

Posted
THS,Lee,I test, Find It's not support "circle" and "arc"

 

Yes, the program only supports polylines.

 

And, for closed polyline have a problem.

 

Please upload a drawing for which the program fails.

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