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: 

Alignment lable style to show deflection angle?

18 REPLIES 18
Reply
Message 1 of 19
Anonymous
6487 Views, 18 Replies

Alignment lable style to show deflection angle?

I had someone request an Alignment, Geometry Point, Label Style that shows
the "deflection angle" as either right or left at the PI point of an alignment. I imagine this would have to be done with an expression but I'm curious if it is even possible. I looked briefly but nothing jumped out at me.. Sorry being lazy this time.
18 REPLIES 18
Message 2 of 19
klugb
in reply to: Anonymous

You can do it through General-Add Label using
Feature- Alignment
Label Type- Tangent Information

And then you can go in and edit the style and set it to either the Delta or Deflection angle.
It won't be part of the original label set, but it will be dynamic with changes to the alignment. Let me know if you need help changing the text contents to show this.

Bruce
Bruce Klug, P.E.
AutoCAD Expert Elite Alumni
AutoCAD Civil 3D Certified Professional
Civil 3D 2023.2.1

Win 10 Enterprise, 64-bit
Message 3 of 19
Anonymous
in reply to: Anonymous


How do you get the left or right?

 

Bill

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
You
can do it through General-Add Label using
Feature- Alignment
Label
Type- Tangent Information

And then you can go in and edit the style and
set it to either the Delta or Deflection angle.
It won't be part of the
original label set, but it will be dynamic with changes to the alignment. Let
me know if you need help changing the text contents to show
this.

Bruce
Message 4 of 19
klugb
in reply to: Anonymous

To coin a phrase from the NFL "after further review, the call on the field was incorrect", or only partially correct.

You can label automatically the delta or the PI included angle. I don't see a way to label the deflection right or left automatically.
Bruce Klug, P.E.
AutoCAD Expert Elite Alumni
AutoCAD Civil 3D Certified Professional
Civil 3D 2023.2.1

Win 10 Enterprise, 64-bit
Message 5 of 19
eadonan
in reply to: Anonymous

Did you guys ever find a way to label the Left or Right for the PI? I also need this functionality.
Thanks,
Message 6 of 19
Civil3DReminders_com
in reply to: Anonymous

Can you post a picture? I thought about looking at it earlier, but didn't quite get what was being asked.

Christopher
http://blog.civil3dreminders.com/< br /> http://style.civil3dreminders.com/
Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Message 7 of 19
eadonan
in reply to: Anonymous

I'm looking to create a label that will look similar to what is in the circle. The tricky part may be getting the right and left as the guys above stated. Any suggestions will be appreciated. I'm appariantly unable to attach ANY files. So, in brief, the PI deflection angle or delta angle is the angle from the prolongation of the back tangent to the ahead tangent of the intersection of any two tangent sections. Also, the direction of the angle will be labeled Rt or Lt depending on the angle.
Message 8 of 19
Civil3DReminders_com
in reply to: Anonymous

To determine if it is right or left I think you will need to use an expression. Take the Start Direction and figure the range of values that would be to the left and to the right start direction. The base values are in radians, and straight up is 0, add and subtract pi from the start direction and adjust for range of values going past 0. That's all I got so far, I'll try to think about it some more this evening.


Christopher
http://blog.civil3dreminders.com/< br /> http://style.civil3dreminders.com/

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Message 9 of 19
Civil3DReminders_com
in reply to: Anonymous

Here is one way to check if the alignment goes left or right at a PI, I think this is what you are after. There's some expressions that are not needed in the file.

http://style.civil3dr eminders.com/checkrightorleft

Christopher
http://blog.civil3dreminders.com/< br /> http://styl e.civil3dreminders.com/intermittentblockoftheday/
Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Message 10 of 19
ryanquigley2390
in reply to: Anonymous

I know it's been a long time since this was posted, but does anyone have any idea why this expression doesn't work in the dragged state? I'm using C3D 2009 and I loaded this expression. It works great until I drag the label off the curve then I get Right and Left displayed at the same time..
Any ideas or has this problem been solved in some other way I don't know about? Edited by: ryanquigley2390 on Dec 5, 2008 8:59 AM
C3D 2012 SP1
Win 7 64 Enterprise
Intel Xeon 3.07 Ghz 8GB Ram
NVIDIA Quadro 4000
Message 11 of 19
Civil3DReminders_com
in reply to: Anonymous

It's because stacked text ignores the text height so it will show all of the components at the same height regardless of the text height shown for the label component. I can't think of a way to fix it.



Christopher
Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Message 12 of 19
eadonan
in reply to: Anonymous

I figured out how to test for the Right or Left deflection angle at a PI. Transmission alignments don't have curve data (unless someone really screwed up) so that will not be available. The output is -1 = Right and 1 = Left. I still have a problem with substituting 'Rt.' for -1 and 'Lt.' for 1. Anybody have any suggestions. I'm pretty sure it can not be done using expressions. Maybe in the labeling syntax?

IF(IF({Tangent Out Direction}-{Tangent In Direction}<0,{Tangent Out Direction}-{Tangent In Direction}+DEG2RAD(360),{Tangent Out Direction}-{Tangent In Direction})
Message 13 of 19
Anonymous
in reply to: Anonymous

is this still doable the same way? I am using 2012 and there is no "general" dropdown anymore. Please advice

Message 14 of 19
Anonymous
in reply to: eadonan

Did you ever figure out the Left or Right expressions issue for transmission alignments? I need to display that info in a tangent intersection label but can't figure out the expression to do it. If you have figured out this issue could you attach a dwg file with that info. Thanks in advance for your help on this.

Message 15 of 19
Anonymous
in reply to: Anonymous

Old thread, but I just figured out how to create "Right" and "Left" designations.
 I'm using 2014 civil 3d. To use expressions, there is no longer a drop down within the label style.  In the Toolspace menu, under your label style sub folder, there is a list of all your styles, then theres an item called "Expr
essions."  You create your expressions outside of the Label Style.
 So I made two expressions
 Name- RIGHT
Expression- 
IF({Tangent Out Direction}-{Tangent In Direction}>0,0.14/12,0.00001)
Name- LEFT
Expression- 
IF({Tangent Out Direction}-{Tangent In Direction}<0,0.14/12,0.00001)
^Adjust these expressions to satisfy your needs.  The 0.14/12 is my desired text size.  The 0.00001 makes the false clause really small.
I then created a New Point of Intersection Style.  You want to create two label components.  One is for Left, one is for Right.  
Left Label Contents:  STA. <[PI Extended Station(Uft|FS|P0|RN|AP|Sn|TP|B2|EN|W0|OF)]> - PI <[Delta Angle(Udeg|FD|P0|RN|AP|GC|UN|Sn|EN|DZY|OF)]>° LT
^You can make your contents whatever you would like, but make sure you put “Left” designation somewhere (I’m using LT and RT).

Here is where the expression comes in.  Set your text height to “LEFT” which is the expression we created.R  epeat this for Right Label Style, rename the Contents to display Right, and select the “RIGHT” text size.  The expression will make it so both left and right labels showup in the drawing.  But when the label that is meant to be Right, the Right label will be normal text size.  When it’s meant to be left, the Right label becomes extremely small, and the left label will be normal text size.
Hope this helps.

 

Message 16 of 19
Ntuthuko.
in reply to: Anonymous

Good Day

 

I've been trying to to use your method to indicate the curve direction (right or left) but AutoCAD does not allow me to simply type LEFT or RIGHT into the Text Height property in the Label Style Composer. Instead I get an error message which reads 'Invalid input." Please help with how exactly to use the expression once created?

 

Thank you

 

Ntuthuko

Message 17 of 19
MSchille-1994
in reply to: Anonymous

How did you get it to label automatically?

Attitude, not Aptitude, Determines Altitude
Message 18 of 19
Cadguru42
in reply to: Anonymous

I'm needing to do this and can't figure it out in C3D 2025. I need to have a label that shows the true angle between two tangents in an alignment. When I use the PI Included Angle (cyan) I get the larger value as shown below. Magenta is regular ACAD angle dimension. 

Cadguru42_0-1721849798714.png

I thought adding an expression of 180-{PI Included Angle} would change that to what I'm looking for, but when I do that I get the following:

Cadguru42_1-1721849923476.png

I'm not sure exactly what's going on. Why does the expression of 180-{PI Included Angle} cause the angle to increase by 9,954.22? Is it not using degrees for the angle on the internal calculations in the expression?

C3D 2022-2025
Windows 11
32GB RAM
Message 19 of 19
paul.reichert
in reply to: Anonymous

Check out FDS Route Mapper or the Pipeline Project Program to automate PI-Deflection Labels. Forefront Design Specialist - Forefront Design SpecialistScreenshot 2024-10-10 071129.png

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

Post to forums  

Rail Community


Autodesk Design & Make Report