AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
Valued Mentor
kevin.barnett
Posts: 397
Registered: ‎08-13-2007
Message 1 of 3 (164 Views)
Accepted Solution

Incorrect South Azimuth direction values after editing Alignment Curve XSL

164 Views, 2 Replies
02-06-2014 12:56 AM

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.

 

 

 

 

 

 

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

*Expert Elite*
Jeff_M
Posts: 4,519
Registered: ‎07-22-2003
Message 2 of 3 (132 Views)

Re: Incorrect South Azimuth direction values after editing Alignment Curve XSL

02-06-2014 07:06 AM in reply to: kevin.barnett

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
Valued Mentor
kevin.barnett
Posts: 397
Registered: ‎08-13-2007
Message 3 of 3 (119 Views)

Re: Incorrect South Azimuth direction values after editing Alignment Curve XSL

02-06-2014 08:15 PM 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..

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.