Alignment Label Angle Expression Calculations

Alignment Label Angle Expression Calculations

TonyLeggieri3279
Advocate Advocate
564 Views
2 Replies
Message 1 of 3

Alignment Label Angle Expression Calculations

TonyLeggieri3279
Advocate
Advocate

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
0 Likes
Accepted solutions (1)
565 Views
2 Replies
Replies (2)
Message 2 of 3

Matheus-Lima
Advisor
Advisor
Accepted solution

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

TonyLeggieri3279
Advocate
Advocate
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