Jump to content

Opening a polyline on the edge selected


Recommended Posts

Posted

Thanks, its interesting to see all the different approaches to solve a problem.

 

I modified Lee Mac routine ;; Open Polylines at Selected Edge. To Change Selected Edge to Arc, I changed the (vla-put-closed Obj :vlax-false) to (vla-setbulge obj 3 1).

  • Replies 22
  • Created
  • Last Reply

Top Posters In This Topic

  • Lee Mac

    9

  • DWG Destroyer

    4

  • RenManZ

    4

  • alanjt

    3

Top Posters In This Topic

Posted Images

Posted

I finally had time to put yours to the test, you were right it is really simple.

 

;Select pline segment to change to arc

(defun c:arcpl (/ pl pt pa)

(setq pl (entsel "\nSelect the pline segment: "))

(setq pt (trans (osnap (cadr pl) "_nea") 1 0))

(setq pl (car pl))

(setq pa (fix (vlax-curve-getParamAtPoint pl pt)))

(vla-setbulge (vlax-ename->vla-object pl) pa 1.0)

)

 

Thanks again!

Posted

How would I go about creating a lisp routine to modify a closed polyline recatangle with .6" radius bulge on oposing sides at one end or both ends of a rectangle. The rectangle would look like a dog bone, see the attached jpg.

Untitled.jpg

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