Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Line Bearing Label Expressions

16 REPLIES 16
Reply
Message 1 of 17
richkerlin6830
1646 Views, 16 Replies

Line Bearing Label Expressions

I am trying to get my bearing label short name spaced to read with a "." after the N & E. Example: N. 00 00 00 E. Does anyone have a clue how to achieve this?

 

Thank you,

 

Rich

16 REPLIES 16
Message 2 of 17
troma
in reply to: richkerlin6830

I would have expected something like that to be in the Abbreviations tab under Drawing Settings, yet a quick look there didn't reveal it.  Sorry.


Mark Green

Working on Civil 3D in Canada

Message 3 of 17

I haven't done this but what I think you'd have to do is to develop expressions that would separate the bearing in to it's first quadrant component, it's angle component and it's second quadrant component. They you'd have to edit the Label Style component contents to read something like:

 

<[First Quadrant component]>. <[Angle]> <[Second Quadrant component]>.

 

It looks like this would take some work to get it right.

 

Allen

 

 



Allen Jessup
Engineering Specialist / CAD Manager

Message 4 of 17
troma
in reply to: AllenJessup

So Allen there is seriously no way to edit the abbreviations for North, South, East & West?  I thought all this stuff was accessable.  What if I wanted them to say A, B, C, D, or 1, 2, 3, 4?  Or Q, X, Z, P?  (Because I'm crazy and/or work for some foreign spy agency) I should be able to, right?


Mark Green

Working on Civil 3D in Canada

Message 5 of 17
AllenJessup
in reply to: troma

If you WERE crazy enough, then you'd probably be crazy enough to figure out how to do it with expressions. I've seen similar things done but I can't find an example at the moment.

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Message 6 of 17

You mean something like this?

 

http://screencast.com/t/jtgJXupOq

 

A bit much to explain here. This weekend I'll try to write up a blog post on how to achieve this. Basically, just add a text component that is a period and locate it correctly.

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

Message 7 of 17
AllenJessup
in reply to: BrianHailey

Very interesting. I'm looking forward to reading about it. I'm thinking that the "locating it correctly" is the key.

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Message 8 of 17

Thanks Brian. That is exactly what I'm looking for. Look forward to reading your blog.

 

Rich

Message 9 of 17

Brian gave me a clue. I created a text component having just a period in it, anchored it to the Bearing and messed around with the offsets until it fell in the right place. I suppose to get the second one you could create another text component or figure out how many spaces to put between the two periods.

 

Brian may have an even better way.

 

dot.PNG

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Message 10 of 17
troma
in reply to: BrianHailey

You can do everything with expressions, apart from set the text height for a reference text component, apparantly.

 

http://forums.autodesk.com/t5/AutoCAD-Civil-3D/Alignment-Label-with-Reference-Text-amp-Expressions/m...  )

 

I still think you should be able to simply change the required abbreviation in the abbreviations tab.  Can anyone think of a good reason for not having it in there?


Mark Green

Working on Civil 3D in Canada

Message 11 of 17
troma
in reply to: AllenJessup

If a space is the same width as a letter (may depend on the font you're using) then it should be simple.

Text component: " ."  that is a space, then dot.

Anchor bottom left of this component to the bottom left of the main label component.

Then add another dot, and play with the number of spaces between them.

 

But if N and S are different widths you're in trouble.  W is a difficult letter, generally wider than others, so you may be better off with a second dot componant anchored to the bottom right of the main label, rather than having both dots in one component.


Mark Green

Working on Civil 3D in Canada

Message 12 of 17

Allen

 

I tried what you suggested and it works great when you line is drawn left to right but when you rotate the line right to left the period does not move with the first letter

Message 13 of 17

Oh well. We'll have to wait for Brian then.

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Message 14 of 17
BrianHailey
in reply to: AllenJessup


@AllenJessup wrote:

Brian gave me a clue. I created a text component having just a period in it, anchored it to the Bearing and messed around with the offsets until it fell in the right place. I suppose to get the second one you could create another text component or figure out how many spaces to put between the two periods.

 

Brian may have an even better way.

 

dot.PNG

 

Allen


Basically the same, I just created a letter that I attached middle left to middle left and then attached the period middle right to middle left. Then set the visibility of the letter to false.

 

As for the period at the end, just add it to the bearing label. http://screencast.com/t/rq4E6RjLznbF 

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

Message 15 of 17

On the general tab, set the "Flip Anchors with Text" option to True.

 

http://screencast.com/t/mgu7aLJUh0 

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

Message 16 of 17
AllenJessup
in reply to: BrianHailey

Can't get text to appear

 

Oh! NOW it worksSmiley Frustrated



Allen Jessup
Engineering Specialist / CAD Manager

Message 17 of 17
AllenJessup
in reply to: BrianHailey


@BrianHailey wrote:

As for the period at the end, just add it to the bearing label.


Duh!!! That's what happens when trying to do styles while plotting a 66 acre deed. Only a 52' missclosure. So all is well.

 

I feel honored. For some reason IT isn't blocking access to screencast.com today

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report