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}"
It returns the middle line below:
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)
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).
Solved! Go to Solution.
Solved by Matheus-Lima. Go to 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 😅
Can't find what you're looking for? Ask the community or share your knowledge.