Jump to content

Information of points in lwpolyline at x distances


Isaac26a

Recommended Posts

Hi everyone, I'd like to ask you again for your help, is there a function I can use? or do you have a suggestion how to obtain the Information of the points every x distance, lets say every 5 or 10 or 20, I can select the lwpolyline (the red ones in this case) and obtain the vertices, the bulges, but how should I procede to obtain the information (I mean the cordinates x and y) of the points that are being touched by the white lines, is there a vlax funtion that I can use to do this?

test.jpg

test.dwg

Edited by Isaac26a
Link to comment
Share on other sites

Its not that hard you can use a vertical line then do VL  intersectwith it will find the the point of intersection so can get the Y value. I am sure you know about vl getpointatdist use that to establish the X points along a horizontal line. Then delete the temporary line. 

 

(setq intpt1 (vlax-invoke obj2 'intersectWith obj1 acExtendThisEntity)) note the extend option the line can be drawn shorter than needed but point will still be calculated. Can also then draw the white vertical lines.

 

 

  • Agree 1
Link to comment
Share on other sites

2 hours ago, BIGAL said:

Its not that hard you can use a vertical line then do VL  intersectwith it will find the the point of intersection so can get the Y value. I am sure you know about vl getpointatdist use that to establish the X points along a horizontal line. Then delete the temporary line. 

 

(setq intpt1 (vlax-invoke obj2 'intersectWith obj1 acExtendThisEntity)) note the extend option the line can be drawn shorter than needed but point will still be calculated. Can also then draw the white vertical lines.

 

 

Thanks BigAl, I'll try that and keep asking if I get stuck with it.

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