• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • AutoCAD 2013/2014 DWG Format

    Reply
    Active Member
    Posts: 6
    Registered: ‎01-16-2009

    Dynamic Text

    452 Views, 12 Replies
    08-24-2012 01:14 PM

    I'm looking for a way to create dynamic text. I have a rectangle representing a sheet of plywood. I have text in the middle of the sheet that says 4'-0" x 8'-0". If I stretch that sheet I'd like it to update the text showing the new size of the rectangle. Any ideas?

     

    Kyle

     

    Please use plain text.
    *Expert Elite*
    Patchy
    Posts: 5,293
    Registered: ‎09-16-2009

    Re: Dynamic Text

    08-24-2012 01:22 PM in reply to: erkoriley23

    It is called FIELD

    Please use plain text.
    Distinguished Mentor
    Posts: 1,566
    Registered: ‎05-13-2003

    Re: Dynamic Text

    08-24-2012 01:22 PM in reply to: erkoriley23

    Use a FIELD (or multiple fields, in this case).

    Please use plain text.
    Active Member
    Posts: 6
    Registered: ‎01-16-2009

    Re: Dynamic Text

    08-24-2012 01:50 PM in reply to: erkoriley23

    Any idea what the formula needs to be or a good website that explains how to write formulas for fields? I chose Object but don't see where I can choose the x length and y length. There is a length property but that gives me the perimeter length.

     

    Kyle

    Please use plain text.
    Distinguished Mentor
    Posts: 1,566
    Registered: ‎05-13-2003

    Re: Dynamic Text

    08-24-2012 02:11 PM in reply to: erkoriley23

    Yes, the fact you are using a rectangle makes it a little more complicated!

    Can you "embed" two more lines (horizontal and vertical), maybe on a "noplot" layer, and link the fields to the length property of these lines?

    Another option would be to create a dynamic block, which can also use fields.

    Please use plain text.
    Active Member
    Posts: 6
    Registered: ‎01-16-2009

    Re: Dynamic Text

    08-24-2012 02:23 PM in reply to: dmfrazier

    I’d rather not do lines just in case the line and the object don’t get stretched together. How would the dynamic block work?

     

    Kyle

    Please use plain text.
    *Expert Elite*
    Patchy
    Posts: 5,293
    Registered: ‎09-16-2009

    Re: Dynamic Text

    08-24-2012 02:32 PM in reply to: erkoriley23

    Polyline won't work  for what you need?

    Please use plain text.
    Active Member
    Posts: 6
    Registered: ‎01-16-2009

    Re: Dynamic Text

    08-24-2012 02:46 PM in reply to: erkoriley23

    I need to the display the width and the height.

     

    Kyle

    Please use plain text.
    *Expert Elite*
    Patchy
    Posts: 5,293
    Registered: ‎09-16-2009

    Re: Dynamic Text

    08-24-2012 03:02 PM in reply to: erkoriley23

    Length?

    Please use plain text.
    Distinguished Mentor
    Posts: 1,566
    Registered: ‎05-13-2003

    Re: Dynamic Text

    08-27-2012 05:41 AM in reply to: erkoriley23

    erkoriley23 wrote:

    I’d rather not do lines just in case the line and the object don’t get stretched together.


    I thought that if the "extra" horizontal and vertical lines coincided with the corresponding sides of the rectangle it would be difficult to stretch one without stretching the other, even if you prefer grip editing, but I guess the potential is there so I understand your hesitance.


    erkoriley23 wrote:

    How would the dynamic block work?


     

    I think it could be a fairly simple dynamic block, consisting of a rectangle made up of four lines (the polyline rectangle doesn't give you any advantage here) and the mtext with embedded fields linked to the length property of one of the horizontal and one of the vertical lines.  There would be a horizontal and a vertical stretch action for the length and width, and you would probably want the mtext "label" to stay in the center, so there would have to be stretch action(s) for that, too (although you could simplify things by anchoring the text to one corner).

    An alternative to this would be to use geometric constraints in the DB.  If there is a relatively finite set of length and width dimensions (or combinations of the two), it might work better to pick them from a list (block properties table) rather than having the user stretch the dimensions.

     

    Please use plain text.