Jump to content

Recommended Posts

Posted
Why not just draw an LWPolyline with a width, rather than a closed one with hatch?

 

Quick and dumb example...

 

(defun c:TEst (/ p1 p2)
 (if (and (setq p1 (getpoint "\nSpecify first point: "))
          (setq p2 (getpoint p1 "\nSpecify next point: "))
     )
   (progn
     (command "_.pline" "_non" p1 "_w" 0. (/ (distance p1 p2) 3.) "_non" p2 "")
     (setvar 'plinewid 0.)
   )
 )
 (princ)
)

 

Finally, the action of this Lisp is the best. Because the width of the LWPolyline goes with the direction of the first and second points parallely.

And the rest of other Lisps are not acting correctly due to the angular degrees.

 

Thanks

 

Tharwat

  • Replies 21
  • Created
  • Last Reply

Top Posters In This Topic

  • Tharwat

    9

  • alanjt

    8

  • jammie

    3

  • fixo

    1

Popular Days

Top Posters In This Topic

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