AutoCAD Civil 3D General

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

Incorrect South Azimuth direction values after editing Alignment Curve XSL

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

 

 

 

 

 

 

*Expert Elite*
Jeff_M
Posts: 4,178
Registered: ‎07-22-2003
Message 2 of 3 (90 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: 381
Registered: ‎08-13-2007
Message 3 of 3 (77 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..

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Civil 3D Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for AutoCAD Civil 3D helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Civil 3D

Twitter

Facebook

Blogs