Jump to content

Get bearings of a set of Polylines/Block perpendicular to a given polyline/curve


Recommended Posts

I have a polyline (red, chainage) and I used measure to put block (perpendicular line) at every 5m of the line. I am looking for way to get the bearing of each of this block faster way. Right now I get each angle one by one.

 

Can anyone please help me get the bearings/angle of each polyline perpendicular to the red line?

I attached an image and dwg for your reference.

 

Thanks so much

Get bearing.JPG

Curve.dwg

Link to comment
Share on other sites

If you look at any of  the Chainage.lsp code that is out there, you will find a mention of vlax-curve-getfirstderiv here is an example defun for each point. 

 

(defun alg-ang (obj pnt)
  (angle '(0. 0. 0.)
     (vlax-curve-getfirstderiv
       obj
       (vlax-curve-getparamatpoint
         obj
         pnt
       )
     )
  )
)

 

Link to comment
Share on other sites

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