AutoCAD Civil 3D General

Reply
Member
djschwarz
Posts: 4
Registered: ‎12-01-2011
Message 1 of 3 (213 Views)
Accepted Solution

Land XML Report Bearing Format

213 Views, 2 Replies
12-20-2013 11:09 AM

I am trying to find where the formatting is for the General Legal Description bearings.  I am currently getting an output of NORTH 00° 12' 33" EAST, but would like to eliminate the spaces in the DMS: NORTH 00°12'33" EAST.  This is also the case with the delta angle for curves.  When I run the Metes and Bounds report, the bearings appear without the spaces.  I think that I have changed it before, but I have switched employers since editing the files. 

Thanks, Doug

Civil 3D 2012

New Member
Posts: 1
Registered: ‎12-20-2013
Message 2 of 3 (187 Views)

Re: Land XML Report Bearing Format

12-20-2013 02:04 PM in reply to: djschwarz

C3D makes it incredibly difficult to edit any of the settings in the General Legal Description. It takes a little coding knowledge to edit the settings. Look for the XSL file located at:

C:\ProgramData\Autodesk\C3D 2012\enu\Data\Reports\xsl.

I believe the xsl file is name Number Formatting.xsl is the correct file to use. Open and Search for the string the has

 

var dirStr = FormatDirectionWithUnit(adjDir , precisionStr, roundingStr, unit);
return northLabel +" " + dirStr + " " + eastLabel;

 

 

Take the space out between the quotes " " should equal "". Do this to all that applies. This should fix the problem, but there is likely more to come with General Legal description. Every little tweak should be done carefully. Make Sure to backup all files in the XSL folder before editing them, one wrong character could make the code invalid. Also C3D General Legal script does not work with any IE beyond 10. Chrome and Firefox does not support the script either.  The coders at Autodesk addressed the problem, but stated they have no interest in fixing the problem at this time. 

Hope this helps and Good Luck!

Member
djschwarz
Posts: 4
Registered: ‎12-01-2011
Message 3 of 3 (134 Views)

Re: Land XML Report Bearing Format

01-02-2014 11:04 AM in reply to: donnie84

That was part  of the problem,  Thanks for the info.  After removing the space inside the quotes, it also removed the space between the North and the East in the bearing output.  I changed the format in the Legal Description_Layout. xsl to add a space after North and South and a space preceding East and West. 

 

function SetDirectionType(type)
{
 dirType = type;
 if(type == "N deg min sec E")
 {
  SetNorthLabel("N ");
  SetSouthLabel("S ");
  SetEastLabel(" E");
  SetWestLabel(" W");
  dirType = "Bearing";
 }
 else if(type == "North deg min sec East")
 {
  SetNorthLabel("North ");
  SetSouthLabel("South ");
  SetEastLabel(" East");
  SetWestLabel(" West");
  dirType = "Bearing";
 }
 return type;
}

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 interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

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