Tuesday, July 19, 2011

Creating a Box Around Structure Labels

Today I was asked by a client if there was a way to show a box around all of the  structure information in plan and profile view as seen below. 


In the label style composer, you can turn on a box for a given component, but there is no simple way of turning on or off a box that encompasses all of your structure information.  The reason that we can't make one label is because of the text for each component that has to be added to generate invert information.  The approach that I took to create the above label was to add the structure name component to the top and bottom of the label, with the bottom copy display set to false.  I then attached a line component to the top of both of the structure name components in the top left and top right to get the proper length of the line.   This generates the top and bottom of the box.




As shown above, I finally create the box by adding two more line components.  Line 3 is determined by selecting the start anchor point to be the start of line 1and the end anchor point is set to the start of line 2.  Conversely, line 4 is created by doing the same process except choosing the anchor point to be the ends of lines 1 and 2 respectively.   We have essentially created a box from four lines.  The one caveat that we must take into consideration, is if the invert information is longer than that of the structure information, we will have text outside of the box since the lengths of lines  1 and 2 are determined by the structure name length.

No comments:

Post a Comment