chainage makrking auto mark stard,mid and end of arc

chainage makrking auto mark stard,mid and end of arc

iftikhargulmrd
Enthusiast Enthusiast
1,318 Views
6 Replies
Message 1 of 7

chainage makrking auto mark stard,mid and end of arc

iftikhargulmrd
Enthusiast
Enthusiast

Hey all

please can anyone help me for  mention subject 

want to add function to mark required interval and start, mid and end of arc and star and end of each segment or polyline as will

Best Regards

 

0 Likes
1,319 Views
6 Replies
Replies (6)
Message 2 of 7

Kent1Cooper
Consultant
Consultant

@iftikhargulmrd wrote:

.... want to add function to mark required interval and start, mid and end of arc and star and end of each segment or polyline as will ....



What is the nature of what's in the l1 variable?  Would it be valid to simply run through the Polyline again and get an n3 value for each vertex and arc-segment midpoint to feed into the same

    (chmark_draw l1 n1 n3 nil n2)

function?

 

Also, since this seems to be only about Polylines, do I assume correctly that by "arc" above you mean each Polyline arc segment, and not Arc entities?  If so, just to clarify, you want all vertices marked and the midpoints of all arc segments, but not  the midpoints of line segments?

 

Are these Polylines ever closed?

Kent Cooper, AIA
0 Likes
Message 3 of 7

iftikhargulmrd
Enthusiast
Enthusiast

lisp mark chainage each interval, in additional I need to mark vertex and start, mid and end of curve

please check image 

Regards

0 Likes
Message 4 of 7

Kent1Cooper
Consultant
Consultant

More answers to my questions are needed.  The way I imagine doing this is going to require having the entity name  of the Polyline, or its conversion to a VLA object, to get its parameters for stepping through its vertices.  Is either of those what's in the l1 variable, or part of what's in it?  If part of it, how is it contained there, so it can be pulled out?

 

Alternatively, post the definition of the  (chainage_selectpline)  function.

Kent Cooper, AIA
0 Likes
Message 5 of 7

iftikhargulmrd
Enthusiast
Enthusiast

sir
I have may roads and the requirement is to mark chainage each 10 meters and each turning point of center line and 3 marks for curve (start, mid and end)

the attached lisp can mark each 10 meters,
and for the function I don't nkow im learner for language not professional

regards

0 Likes
Message 6 of 7

Kent1Cooper
Consultant
Consultant

@iftikhargulmrd wrote:

.... and for the function I don't nkow im learner for language not professional ....


Search through your code resources to find something that includes:

 

(defun chainage_selectpline

 

and post that line and what follows it until you get to another line starting with  (defun ... , or if you don't, until the end of the file.

Kent Cooper, AIA
0 Likes
Message 7 of 7

Sea-Haven
Mentor
Mentor

Do you have access to CIV3D its all built in.

 

If your going to add arc pts then should introduce some rules about length etc long arcs at chainage interval, short mid or 1/4 required, or not at chainage interval but say 1/8ths.

 

Maybe use measure create "points" then add the vertices as "points" remove any to close together do 1/2 qtr etc. then just use these points and vl getdistatpoint write chainage. Could do a dcl list and remove unwanted chainages then label.

0 Likes