Jump to content

Associative and dynamic text length to a Polyline.


CafeJr

Recommended Posts

Hi to all,

 

Please someone knows one lisp to get length of a PL (polyline) and write it above this PL in associative and dynamics form? As the Picture.

 

 

If the length is changed the text follow these data.

 

Thanks in advance.

Associative Length.jpg

Link to comment
Share on other sites

Use the field command with the length property .

 

 

 

:unsure:

 

 

Thanks Tharwat it works, but it's in separated way, do you know how do it as a linked items? A Polyline with a text showing your length?...

 

 

Thanks again.

Link to comment
Share on other sites

:unsure:

 

 

Thanks Tharwat it works, but it's in separated way,

 

No it is not , Follow the sequence : Field.Field names.Object.Object type[button]..Property.Length.Ok.Specify Point :)

 

A Polyline with a text showing your length?...

 

It should show you the selected object that have Length property and NOT my length :lol:

 

Good luck .

Link to comment
Share on other sites

No it is not , Follow the sequence : Field.Field names.Object.Object type[button]..Property.Length.Ok.Specify Point :)

 

I'll try it, thanks again!!!...

 

It should show you the selected object that have Length property and NOT my length :lol:

Good luck .

 

Opsss... kkkkk sorry about the english!... He he he... I wrote so fast and did not realize it!... He he he...

Edited by CafeJr
Link to comment
Share on other sites

No it is not , Follow the sequence : Field.Field names.Object.Object type[button]..Property.Length.Ok.Specify Point :)

 

Tharwat, it Works!!!... Thanks again!!!...

Link to comment
Share on other sites

My Length at Midpoint program will get you most of the way there; you could then use this program to align the text dynamically if necessary.

 

Thanks LeeMac!!!...

 

Only a simple ask:

Do you know if has something automatic as a dynamics/associative change, if the length of polyline was modified the it update the length number "on line"?... Because using both way it's necessary do a regen command to update it.

 

 

I ask it because I have many polylines at same drawing used to show lengths, if is possible link each text with your specific line it's better to work.

Edited by CafeJr
Link to comment
Share on other sites

AutoCAD LT users normally modify dimension style by setting Arrowhead "none"

suppress all lines : "Dim Line 1", "Dim Line 2", "Ext Line 1", "Ext Line 1"

only the dimension text visible & dynamically associative 8)

 

For coding OP can try the above idea in vLisp which is better than vanilla in this task

 

however i'm not sure placing text above or below line can be fully automated if the shape is polygonal cw & ccw

$0.02 :)

Link to comment
Share on other sites

AutoCAD LT users normally modify dimension style by setting Arrowhead "none"

suppress all lines : "Dim Line 1", "Dim Line 2", "Ext Line 1", "Ext Line 1"

only the dimension text visible & dynamically associative 8)

 

For coding OP can try the above idea in vLisp which is better than vanilla in this task

 

however i'm not sure placing text above or below line can be fully automated if the shape is polygonal cw & ccw

$0.02 :)

 

 

hanhphuc, I guess it works but for a single line... its usual to do a simple measurements... It's a good tip!!!... I can't find a way to use with a polyline...

Link to comment
Share on other sites

Example: pdim by Marko Ribar

which has option to put dim text outside / inside polygon :thumbsup:

 

Thanks to you and Marko Ribar!... He he he...

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