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: 

Incorrect South Azimuth direction values after editing Alignment Curve XSL

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
kbarnettza
527 Views, 2 Replies

Incorrect South Azimuth direction values after editing Alignment Curve XSL

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.441Bearing:227° 01' 39.6530"

Circular Curve Data
Delta:88° 06' 57.0898"Type:RIGHT
Radius:12.500
Length:19.224Tangent:12.096
Mid-Ord:3.517External:4.894
Chord:17.385Bearing:358° 54' 51.8021"

Tangent Data
Length:52.804Bearing:314° 51' 23.2572"

Circular Curve Data
Delta:90° 57' 40.3710"Type:LEFT
Radius:12.500
Length:19.845Tangent:12.711
Mid-Ord:3.736External:5.328
Chord:17.825Bearing:269° 39' 46.5573"

Tangent Data
Length:103.845Bearing:224° 10' 56.3718"

 

 

 

Two of the bearing/direction values are incorrect (the inner ones), here is the correct values:

example-dir.png

 

 

Please indicate where I went wrong ... or what I have missed.

The DWG is attached.

 

Thx..

 

Kevin.

 

 

 

 

 

 

2 REPLIES 2
Message 2 of 3
Jeff_M
in reply to: kbarnettza

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;
}

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 3
kbarnettza
in reply to: Jeff_M

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..

 

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

Post to forums  

Rail Community


Autodesk Design & Make Report