Monday, May 4, 2009

Dragged State Labels

OK.....I'll be the first to admit that I am slow sometimes, mentally that is. This is something that I probably should have found a long time ago, but i stumbled upon it today. I was playing around with some Point Label Styles in AutoCAD Civil 3D 2010 today when I got to thinking about how I would really like to use a Stacked Text format for my dragged state, so that I could change the attachment point of my leader to the label. Then it dawned on me that I could create this style.

So, let's see how we would do just that. First, I created a point in my drawing. I did not change the default settings so when the point was created all I got was the point marker. Next I applied a Point Label Style to the point. the screen cap below shows my point style and point marker style.


Next, I clicked on the point to activate the grips and drug the label up and to the right of my point as shown below.
From here, obviously, we need to edit the point label style. You can do this by clicking on the Settings tab in Toolspace and then expanding the Points node and then expanding the Label Styles node and then right-clicking on the style and selecting edit. Alternatively, you can right click on the point that you want to edit and in the Edit Points Vista, scroll to the right until you see the Point Label Style column. Clicking in the Point Label Style column will bring up the select label style dialog where you can edit the style by clicking on the button to the right of the style field.
So, we have obviously applied colors to the text components on the layout tab. But, as shown above the colors are changed to the "Byblock" default color for the Dragged State. Here we will click in the Text Contents field to bring up the Text Component Editor and we want to highlight the text in the right-hand side of the editor. Then we will click on the Format tab and set the color of the text.

We want to do this for each of the components in our label style. Then we will click on the Dragged State tab and make sure that the Dragged State Component Display is set to Stacked Text.




The results of our point label style are shown below. This is what the Dragged state would look like if we had set the Dragged State Component Display to "As Composed" also.

So, let's edit the point label style again. And this time on the Dragged State tab, let's change the attachment point of the leader to the Middle of the Top Line.



Click OK. You may have to regenerate the screen to see that the changes did take affect. You should be left with something that looks like the image below.
Now, here are a couple of hints for those of you working with Label Styles. The steps above will work for any Dragged State. You may want to create a Right and Left dragged state if you want a different connection point for the leader depending on which side of the object you are dragging the label. Also, pay attention to the order in which your components are created in the label style. The Dragged State arranges the text components in the order in which they were created!






8 comments:

Unknown said...

Hi Whit,
Thanks for that post. The alleged "help" section is useless, and "click,click,click" wasn't working for me. Google found you, and for that I thank them and you. The stacked text option worked great, but then the point number becomes 20 times the size that it was. x-y scale won't let me change anything, it just says "property not set".
2010 is cool, but I miss AutoCAD 14/Softdesk where I knew what to do about everything.
I'm going to read through your posts for other nuggets.

Dave

Whit McCormack, P.E. said...

Dave,

I am glad that you have found some helpful information on my blog. The purpose of this blog is to novice users hints that make life in Civil 3D easier. With that said, let's try to address the issue with your point number being improperly scaled.

I assume that since you have read this post that you understand how to edit the label style. Go to the Layout tab and click on the down arrow in the box under the component name and then select Point Number. Now look down lower in the dialog box to the text height. I typically leave the text height at 0.1000". This is similar to loading the L100 text style in Softdesk.

The text height that you set here is the plotted text height. What I mean there is that if you have a 50 scale drawing, the text size is 5 units so that when you plot the drawing it will be 0.1" tall.

The other thing to check is on the Dragged State tab. There is a text height setting there too.

Check these and if that doesn't help you out, reply back here and I will give you directions on how to send me a copy of your drawing file to see if I can fix it.

Thanks again for your comments.'

Unknown said...

Hi Whit,
Thanks for that. Under the Layout Tab the text height was 0.01 and under the Dragged State Tab the text height was 0.1. I changed the text height under the Dragged State Tab to match the Layout Tab and voila! Is there any way to turn off the leader? Also, I can't get the leader to show an arrow. I tried changing the arrow size and even tried other kinds of arrows like the dot.
Thanks very much for your help. I'm learning about Civil 3d on my own. I'm a layout carpenter and I calc my points on AutoCAD and print out a page to be better able to visualize the points I stake. I just finished the new Caesar's Palace Convention/Pool addition in Las Vegas.

Dave

Whit McCormack, P.E. said...

Hey Dave,

Did you try changing the arrowhead size in the dragged state portion of the dialog box? If not, try changing the size to 0.01 or smaller. It sounds to me as if you may be working in Architectural units. This is not the best units for Civil 3D, but if that is where you are then we will work with it.

If that doesn't work, you can send me a copy of the drawing to dwm@alacad.com.

Unknown said...

Hi Whit,
I had tried to change the arrow sizes in dragged state before, but after you mentioned this I went back and tried again. At first, no luck, but then I hit "apply" and Voila! Now I understand why things sometimes reverted back after changing them. I also played with all the kinds of arrows. Once again I am in your debt.
I've been reading through your blog and your mention of the UG boys lead me to those great U-Tube videos. Without you, I wouldn't have known about those.
Thanks Whit.

Dave

Tommy said...

In your first "dragged state" screen capture, the tip of the arrowhead is not at the XY of the point. It's close to the edge of the symbol. In the next screen capture (where the pt# = cyan, elev = green, and desc = red)- the tip of the arrowhead IS touching the XY of the point (center of the symbol) How do you get it to do this?

Whit McCormack, P.E. said...

Tommy,

Thanks for the question. This is one of those hidden gems in Civil 3D. You would think that since the leader "style" is controlled by the Dragged State of the label style that the setting would be found in the Label Style Composer on the Dragged State tab. Obviously, this is not the case.

The location of the arrowhead of the leader is actually controlled by the point style. If you go to the Settings tab in Toolspace and expand the node for Points and then expand the node for Point Styles, you will need to right click on the point style that is being used as the point marker in your drawing and select edit. Once the Point Style Editor is opened, Click on th Summary tab. Expand the node for Marker and the first item in the list is "Leader stops at marker." Change this setting to no and the leader will go to the insertion point of the point marker. If you want this scenario for all of your points, go ahead and make the change to all of the point styles while you are there. I would suggest making these changes in your drawing template, that way you will not have to make the same changes to the settings over and over again.

Unknown said...

Tommy,

Good eyes! I missed that subtle observation.

Whit,

Thanks again for the illumination. I just tried that on some dragged-state point labels and it worked like a charm.

Dave