Is it possible to segment a line into evenly spaced point data?

Is it possible to segment a line into evenly spaced point data?

201821253
Observer Observer
327 Views
4 Replies
Message 1 of 5

Is it possible to segment a line into evenly spaced point data?

201821253
Observer
Observer

201821253_0-1649742267592.png

I am trying to divide the following line into point data with a specified interval. And I want to get the coordinate values ​​of each points.
I tried 'xplode', 'break' command. But it isn't what I need.
0 Likes
328 Views
4 Replies
Replies (4)
Message 2 of 5

Pointdump
Consultant
Consultant

Hi @201821253,
Did you try Command DIVIDE? Then you can use Data Extraction to get coordinates of the points.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 3 of 5

tramber
Advisor
Advisor

1) Use better MEASURE to specify a distance along the polyline and draw points (nodes) or insert blocks (it is an option) and then you can extract those datas...

 

2) Second option, if i understand that you just want to extract coordinates of a polyline, this is a fast made lisp :

(defun c:expts(/ profile result)
  (cond(
	(setq profile(entsel "\nSelectionnez la polyligne\n"))
	(setq result(mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 10)) (entget(car profile)))))
	(foreach p result
	  (princ(strcat(rtos(car p)2 2)"," (rtos(cadr p)2 2)"\n")))))
  (princ)
  )

Load it, run EXPTS and you will get the coordinates...

 

1) or 2) ?


EESignature

0 Likes
Message 4 of 5

Zlatislav.atanasov
Advocate
Advocate

Hi @201821253 
There is a great LISP that does just what you need. It Splits Polylines into equal segments you can check it out here: How to Split Polyline into a number of Segments or at Intervals? 


My personal blog - AutoCAD and AutoCAD Civil 3D hidden Secrets and great tips in one place -

https://skillamplifier.com/

Amplify your skills to a new level!

0 Likes
Message 5 of 5

Kent1Cooper
Consultant
Consultant

@201821253 wrote:

 

I am trying to divide the following line into point data with a specified interval. And I want to get the coordinate values ​​of each points.

Do you want the line [or arc, or polyline, or circle, or...] actually broken into pieces at that interval, or do you just want the coordinates at locations along it at that interval?  If the former, I have a routine to do that by specifying the number of equal-length pieces you want it broken into, which could be edited to use a specified interval instead.  If the latter, in what form?  An AutoLisp list of point-coordinate lists?  Text in the drawing somehow?  An external file of some kind?  Etc.

Kent Cooper, AIA
0 Likes