Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there a way to make the box or line in Annotation automatically resize to fit the text length?
Solved! Go to Solution.
Is there a way to make the box or line in Annotation automatically resize to fit the text length?
Solved! Go to Solution.
Short answer, no. What kind of annotation are you trying to make?
Labels and Text in annotation do not respond to length parameters governing other elements. To work around this we often create multiple types that assume certain length annotation, based on a number of characters for example or length of the line. Then each type has its own label/text elements (controlled with visibility parameters) and their length is adjusted to correspond with the length of the symbol line work we want to use. In some cases using underline in the label/text type can provide the "line" you want instead of a separate line.
Steve Stafford
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.
Thank you for your response.
I want to draw two lines under the text, and I’d like these lines to adjust according to the text length.
From what I understand, is it possible to create a parameter for length and then control the label based on that length? Could I see an example image?
The label/text won't respond to the length parameter, no way to "connect" them. What we do is create an instance of the label/text that is wide enough to show a specific number of characters to match up with a line's length. That means the line will be a certain length and the text won't exceed that length but it might be shorter than the line. If we create three types, short, medium and long and have three versions of the label/text that turn on/off according to which type is selected then we set the line length to correspond to the length we have in mind. See the Revit 2025 example family, three types (sizes: Short, Medium Long). The length of each Room Name parameter is a bit longer to correspond with the available box size.
Fwiw, in this instance I could add the show border option to create a box around the information that would resize with the data shown. A label can include more than one parameter so the "box" could surround all the information in a room tag.
Steve Stafford
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.
So it seems I need to create multiple types. I just understood that now. Thank you for your response.