If you are still using Civil 3D 2010, perhaps you’ve seen what it is I’m talking about (not sure if this is a C3D issue or an AutoCAD issue):
Who in their right mind needs to see this much information every time they happen to pause over an XREF? The fix is amazingly simple.
First go into the CUI (type “CUI”) and select the Rollover Tooltips. Since the XREF is an AutoCAD entity, I like to do it under the ACAD CUI file. If you are running C3D, it’s one of the Partial CUIs. If you’re running straight AutoCAD, it’s the enterprise CUI. Under the rollover tooltips, you need to toggle on the External References but, you’ll notice that there is no option there. By default, the CUI doesn’t display all the options all the time so, you have to add it to the list, to do that, select the “Edit Object Type List”.
That’s all you have to do. Once you exit out, you are good to go. I think that because the XREF option toggled on, it displayed all the properties. Once you toggle it on, it only displays the properties that are checked on. Now, if you want to change what info is displayed, simply go back and toggle what you need on and off.
Fortunately, this doesn’t seem to be an issue in 2011.
Recently on one of the discussion groups, someone asked if they could put a box around a structure label in a profile view. The problem with this is that you can’t simply toggle on the display of the border because the label is composed of several components and would look something like this:
Labels with frames turned on
As you can see, it’s not quite what I would like to see. The problem with this is that you can’t create the entire label within one text component. Since the inflow and outflow labels are displayed in a “Text for Each” component. What I would much rather see is something like this:
Labels the way they should be
Now, the primary problem with this is that there’s nothing to simply create a box around. So, what I did was to create the four lines manually. The first line (#1) attaches from the top right of the structure name to the bottom right of the invert out text. Lines #2 and #3 attach to the beginning and end of line #1 respectively and line #4 attach to the ends of lines #2 and #3. The trick here is, how long do lines 2 and 3 need to be? I can’t simply attach them to another point on the labels because the text they attach to are different lengths. Here is what I did, I created a very simple expression the determines the length of the lines. What is in the express? That’s what makes it so simple, it’s just the plotted length of the line. If I need to stretch the frame a bit, I just change the value of the expression and then do a regen.
Here’s the label style showing the lines as well as the expression. Again, to change length of the box around the label, simply change the value in the expression.
Label Style and Expression
One of the limitations of this technique is that all of the boxes in the labels are all the same length. If you need to have the boxes to have different lengths, then you would have to create new expressions and new label styles.
It’s not the best workaround I’ve ever come up with but it does work. Hopefully someone who reads this will offer up a better solution.