Hello,
Civil 3D 2014.
The default reports provided in the Toolbox Report Manager cannot be used - as they are - in South Africa. And... the Country Kit has not attended to this problem.
So, I tried to edit it myself... Looks like I made a small mistake somewhere, please help.
In the "Alignment Curve.xsl" I replace Bearing with "South Azimuth", like this:
<td>Bearing:</td>
<xsl:variablename="angle"select="landUtils:GetLineDirection($pos)"/>
<xsl:variablename="Bearing">South Azimuth</xsl:variable>
An example report, looks like this:
Alignment: Road 1 Description:
Tangent Data | |||
Length: | 60.441 | Bearing: | 227° 01' 39.6530" |
Circular Curve Data | |||
Delta: | 88° 06' 57.0898" | Type: | RIGHT |
Radius: | 12.500 | ||
Length: | 19.224 | Tangent: | 12.096 |
Mid-Ord: | 3.517 | External: | 4.894 |
Chord: | 17.385 | Bearing: | 358° 54' 51.8021" |
Tangent Data | |||
Length: | 52.804 | Bearing: | 314° 51' 23.2572" |
Circular Curve Data | |||
Delta: | 90° 57' 40.3710" | Type: | LEFT |
Radius: | 12.500 | ||
Length: | 19.845 | Tangent: | 12.711 |
Mid-Ord: | 3.736 | External: | 5.328 |
Chord: | 17.825 | Bearing: | 269° 39' 46.5573" |
Tangent Data | |||
Length: | 103.845 | Bearing: | 224° 10' 56.3718" |
Two of the bearing/direction values are incorrect (the inner ones), here is the correct values:
Please indicate where I went wrong ... or what I have missed.
The DWG is attached.
Thx..
Kevin.
Solved! Go to Solution.
Solved by Jeff_M. Go to Solution.
Which xsl file did you edit? I don't see the lines you show in the Alignment Curve.xsl Scratch that. I see that they didn't use a global variable for this so need to change it in a number of lines. The problem is in the Number_Formatting .xsl Scroll down the the Direction Formatting, then to the South Azimuth section. The final "else if" needs to be changed to this:
else if(dirNum < 360 && dirNum > 270)
{
var adjDir = 360 - (dirNum - 270);
var dirStr = FormatDirectionWithUnit(adjDir , precisionStr, roundingStr, unit);
return dirStr;
}
Thank Jeff, probably the most diligent observer participating in the Autodesk forums. You save me yet again. I hope I am not the only user that appreciates and can implement the solutions you provide.
Here's hoping life is treating you extra well...
Take care..