Showing posts with label Point Label Style. Show all posts
Showing posts with label Point Label Style. Show all posts

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!






Monday, July 28, 2008

Label Styles - Anchors and Attachments

In the past few weeks I have had several people asking about label styles and how to place the text in the correct place with relation to an object. For starters I would look at some of the label styles that ship with AutoCAD Civil 3D templates. These can be a great place to start looking for styles that may be modified to meet your company's standards.

But, what if you can't find a style to modify to look like the particular label that you want? Well, that's when we get to be a little creative. Let's take a look at creating a Point Label Style. For Visual effect create a point using the create points command from the Points menu. Accept all of the defaults when creating the point. Then click on the point, right-click and select edit points. This brings up the Point Editor Panaorama Vista. Scroll over to the right until you see the columns labeled Point Style and Point Label Style. When you first select the point and scroll to the columns listed above the fields will probably be blank, unless you have specified a particular point style or point label style.



Click in the field for Point Style. This will bring up the Select Point Style Dialog box. Choose Basic from the pull-down menu and then select Edit Current Style from the button to the right of the pull-down menu. Change the marker style to "X" by clicking on the "X" button under Use Cutom Marker. Then click OK twice to get back to the Points Editor.

Next Click in the field for Point Label Style. This will bring up the Select Label Style Dialog Box. In this dialog box click the down arrow to the right of the button and Select Create New.

This will bring up the Label Style Composer Dialog box. On the Information tab give your new style a name. Click on the General Tab. Here you can set the text style, visibility and layer for you new point label style. (Hint: In 2009 the Standard Text Style maps to the Simplex font.) Next click on the Layout Tab. This is where all of the fun begins! The very first thing that you will see is a pull down menu called Component Name. To the right there are four buttons. These buttons are: Create Component, Copy Component, Delete Component and Component Draw Order. Click on the Create Component pull-down. You have options for creating text, line and block components. Choose Text to create a text component. Since we are dealing with Point Label Stlyes there will be three components present in the Component Name pull-down.


In the field for Name under the General Node give your text component a name. For instance let's create a component for the Northing of the point. So we name the new component "Northing." We will leave the visibility set to true so that we can see the new component. The next field assigns the anchor component. Now, If we are creating a breand new label and we have no other text components in the style, we will have to anchor the new text component to the feature. If we have other text components we may choose to anchor to the feature or one of the other text components. When we have decided what to anchor our new text component to, we have to choose the anchor point.
The screen capture above shows the nine possible anchor points associated with our point object. The anchor points are: Top Left, Top Center, Top Right, Middle Left, Middle Center, Middle Right, Bottom Left, Bottom Center and Bottom Right. The same nine anchor points are available if we choose to anchor our new text to an existing text component also. Just remember that each of the text components that we create also have attachment points that correspond to the nine positions shown above. So, what does that mean for us? That gives us a multitude of options for creating our labels.
Some other options for our labels are that we can use the x- and y-spacing to offset the attachment point from the anchor point if we need more space between the label and the object. (Think station labels.) We can also add rotation angles into the label style. The thing to watch out for here is that if we rotate the text component that is attached to the feature, we do not rotate the text components attached to that particular text component.
This is an overview of creating a point label. Be adventurous and explore the options for other types of labels.