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 Label Angle Expression Calculations

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
TonyLeggieri3279
266 Views, 2 Replies

Alignment Label Angle Expression Calculations

I have scoured the web and these forums and I may have just missed this, so I apologize if I have.

 

Working in Civil 3D 2020.6.2

 

The jurisdictions we work in require water mains to be stationed in plan view and for horizontal bends to be called out as a fraction of 360deg (for example, 45deg = 1/8 Horizontal Bend (HB), 22.5 deg = 1/16 HB and 11.25deg = 1/32 HB). We have alignments created along the water main and I would like to label the angle with an alignment label (tangent intersection) but the expression to convert does not seem to work.

 

When I write an expression (called HB CALLOUT in this case) as "360/{Delta Angle}"

TonyLeggieri3279_1-1660598567290.png

It returns the middle line below:

TonyLeggieri3279_0-1660598412149.png

 

However, the bottom line is another expression called "ANGLE TEST" which is 360*{Delta Angle} and that value is correct (360*45=16,200.00)

 

TonyLeggieri3279_2-1660598645034.png

 

Am I doing something wrong? I am pulling my hair out trying to get a 360/45=8 (or any of the others to work for that matter).

 

 

 

Tony Leggieri
Gutschick, Little & Weber, P.A. (GLW)
CADD Manager
Civil 3D 2023.2.1
Windows 10
2 REPLIES 2
Message 2 of 3

Hey @TonyLeggieri3279!

After some tests here, I figured it out. The point is that Civil 3D makes calculations converting to rad.

Short explanation: use 360/RAD2DEG({Delta Angle}) with format "double".

Long explanation below

===

Considering you insert 360*{Delta Angle} with Delta Angle = 45º:

 

If the format is "double", Civil 3D calculates: 360*0,785398 (45º in rad) = 282,7433 rad (WHAAT? Yes.).


If the format is "angle", Civil 3D calculates: 360*0,785398 (45º in rad) = 282,7433 rad. It converts to "angle" then, so 16200º (Yes, we did it).

 

===


Now, considering you insert 360/{Delta Angle} with Delta Angle = 45º:

If the format is "double", Civil 3D calculates: 360/0,785398 (45º in rad) = 458,3662 rad.


If the format is "angle", Civil 3D calculates: 360/0,785398 (45º in rad) = 458,3662 rad. It converts to "angle" then, so 26262º (Fail).

 

===


So, I mentioned above one solution. Civil 3D sees it as rad. You convert it to degrees and use the format "double" to make sure it won't make more conversions...

That's it.


PS: almost pulled my hair also 😅

[PT-BR] Se essa postagem foi útil para você, clique em Curtir! Se a resposta resolveu o seu problema, clique em Aceitar Solução.
[EN-US] If it was helpful to you, click on Like! If the answer solved your problem, click on Accept Solution.

EESignature


Matheus Lima
Civil Engineer | BIM for Infrastructure Enthusiast | BIM Manager | Instagram @bim_infra | LinkedIn
Message 3 of 3

Thank you Matheus!!! I was going crazy trying to figure that out. It makes sense...I think... 😅
Tony Leggieri
Gutschick, Little & Weber, P.A. (GLW)
CADD Manager
Civil 3D 2023.2.1
Windows 10

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

Post to forums  

Rail Community


Autodesk Design & Make Report