how to arrange the blocks according to polyline cross them

how to arrange the blocks according to polyline cross them

adrianmihai1
Community Visitor Community Visitor
280 Views
2 Replies
Message 1 of 3

how to arrange the blocks according to polyline cross them

adrianmihai1
Community Visitor
Community Visitor

what can i use to arrange blocks that are cross by a polyline? I want to arrange only the blocks that i hvac selected according to the selected polyline. 

Below I showed how i would like the arrangement to be

adrianmihai1_0-1674675375372.png

adrianmihai1_1-1674675771229.png

 

0 Likes
281 Views
2 Replies
Replies (2)
Message 2 of 3

Kent1Cooper
Consultant
Consultant

Is the Polyline always made of only line segments?  If so, its vertices can be extracted and used in a Fence selection in (ssget) to find things it crosses, and, very conveniently, their order in the selection set will be the order in which the Fence crosses them.  I think that will require that there is some drawn element in each Block where the Polyline crosses it, i.e. the Polyline doesn't pass through a gap in a Block, or something.

Kent Cooper, AIA
0 Likes
Message 3 of 3

ronjonp
Mentor
Mentor

@adrianmihai1 

Look at the function vlax-curve-getPointAtDist. This is assuming the start point of your line is on the left.

0 Likes