Name line with it nearest grid axis name

Name line with it nearest grid axis name

the_ameral
Advocate Advocate
777 Views
9 Replies
Message 1 of 10

Name line with it nearest grid axis name

the_ameral
Advocate
Advocate

Iwant to name every line with the grid nearest it

Or away to do this

"Ican give ahint

define every grid with it name

Then find the rotation of line if horizontal find axis near and parallel  to it

20210928_235157.jpg

And the nearest start and end of line grid

 

0 Likes
778 Views
9 Replies
Replies (9)
Message 2 of 10

the_ameral
Advocate
Advocate

???

0 Likes
Message 3 of 10

Valentin_CAD
Mentor
Mentor

@the_ameral ,

 

There may be a LISP, consider this link from the Visual LISP, AutoLISP and General Customization forum:

 



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes
Message 4 of 10

the_ameral
Advocate
Advocate

I USE AUTOCAD NOT CIVIL3D

0 Likes
Message 5 of 10

hosneyalaa
Advisor
Advisor

Please attach an example drawing

Explain what is required

0 Likes
Message 6 of 10

the_ameral
Advocate
Advocate

Capture.PNG

0 Likes
Message 7 of 10

the_ameral
Advocate
Advocate

??

0 Likes
Message 8 of 10

Sea-Haven
Mentor
Mentor

Just ideas move text so is mid on line at top left etc, then just pick a point on line at segment, you can then find say the "B" line so thats 1 variable required, then do a intersect with and compare pts find the + and - near point again get the value so 2 and 3. Use say xline for intersect with. This is using a point select not a red line can draw red line and text. Need a global answer as grids may start at say A1 F2-2 and so on.

0 Likes
Message 9 of 10

the_ameral
Advocate
Advocate

I cant get it

0 Likes
Message 10 of 10

hak_vz
Advisor
Advisor

It would be relatively easy to do if your drawing would be organized in layers. The way it now stands it's hard to do. One option is to implement function to automatically name horizontal and vertical elements of the grid. Naming of the lines on the grid would then be taken from layer names. 

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes