Results 1 to 5 of 5

Thread: Metes & Bounds and Area Reports

  1. #1
    Member
    Join Date
    2014-10
    Posts
    4
    Login to Give a bone
    0

    Lightbulb Metes & Bounds and Area Reports

    Hello,

    I'm trying to customize the Metes & Bounds report to add area. Instead of having to print out two different reports, it would be nice to have it in one. I've tried adding the xsl area code to the metes & bounds but when I run the report I get an error. I'm working with Civil 3D 2013 Can anyone help? Much appreciated.

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,106
    Login to Give a bone
    0

    Default Re: Metes & Bounds and Area Reports

    Can you post what you have tried? You may need to place it in a *.zip file before uploading it. I am not certain that file extension is allowed.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  3. #3
    Member
    Join Date
    2014-10
    Posts
    4
    Login to Give a bone
    0

    Default Re: Metes & Bounds and Area Reports

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    	xmlns:lx="http://www.landxml.org/schema/LandXML-1.2"
    	xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    	xmlns:landUtils="http://www.autodesk.com/land/civil/vcedit"
    	xmlns:lxml="urn:lx_utils">
    
    <!--Description:Metes and Bounds
    
    This form lists the direction and distance or tangents or curve data computed from a begin point expressed as NE.  
    
    This form is valid for LandXML 0.88, 1.0, 1.1 and 1.2 data.-->
    <!--CreatedBy:Autodesk Inc. -->
    <!--DateCreated:06/15/2002 -->
    <!--LastModifiedBy:Autodesk Inc. -->
    <!--DateModified:10/9/2002 -->
    <!--OutputExtension:html -->
    <xsl:output method="html" encoding="UTF-8"/>
    
    <!-- =========== JavaScript Includes ==== -->
    <xsl:include href="LandXMLUtils_JScript.xsl"/>
    <xsl:include href="General_Formating_JScript.xsl"/>
    <xsl:include href="Plan_Comp_JScript.xsl"/>
    <xsl:include href="Conversion_JScript.xsl"/>
    <xsl:include href="Number_Formatting.xsl"/>
    <xsl:include href="header.xsl"/>
    <xsl:include href="Parcel_Layout.xsl"/>
    <xsl:include href="Parcel_Area.xsl"/>
    
    <xsl:param name="SourceLinearUnit" select="//lx:Units/*/@linearUnit"/>
    
    <xsl:template match="/">
    	<html>
    	<head>
    		<title>Metes and Bounds Report for Project <xsl:value-of select="//lx:Project/@name"/></title>
    	</head>
    	<body>
    	<div style="width:7in">
    	<xsl:call-template name="AutoHeader">
    		<xsl:with-param name="ReportTitle">Metes and Bounds Report</xsl:with-param>
    		<xsl:with-param name="ReportDesc"><xsl:value-of select="//lx:Project/@name"/></xsl:with-param>
    	</xsl:call-template>
    	<xsl:apply-templates select="//lx:Parcel"/>
    	</div>
    	</body>
    	</html>
    </xsl:template>
    
    <xsl:template match="lx:Parcel">
    	<xsl:apply-templates select="." mode="set"/>
    	<h2>Metes and Bounds description of parcel <xsl:value-of select="@name"/></h2>
    	<xsl:apply-templates select="./lx:CoordGeom"/>
    	to the point of beginning.<br/><br/><hr/>
    </xsl:template>
    
    <xsl:template match="lx:CoordGeom">
    	<xsl:variable name="ComNorthing" select="landUtils:GetCommencePointNorthing()"/>
    	<xsl:variable name="ComEasting" select="landUtils:GetCommencePointEasting()"/>
    	Beginning at a point whose Northing is <xsl:value-of select="landUtils:FormatNumber(string($ComNorthing), string($SourceLinearUnit), string($Parcel.Point_Coordinates.unit), string($Parcel.Point_Coordinates.precision), string($Parcel.Point_Coordinates.rounding))"/>
    	and whose Easting is <xsl:value-of select="landUtils:FormatNumber(string($ComEasting), string($SourceLinearUnit), string($Parcel.Point_Coordinates.unit), string($Parcel.Point_Coordinates.precision), string($Parcel.Point_Coordinates.rounding))"/>
    	<xsl:for-each select="./node()">
    		<xsl:apply-templates select="."/>
    	</xsl:for-each>
    </xsl:template>
    
    <xsl:template match="lx:Line">
    	<xsl:apply-templates select="." mode="set"/>
    	<xsl:variable name="angle" select="landUtils:GetLineAngle()"/>
    	<xsl:variable name="LineLength" select="landUtils:GetLineLength()"/>
    	;<br/>thence bearing <xsl:value-of select="landUtils:formatBearingDMS($angle)"/>
    	a distance of <xsl:value-of select="landUtils:FormatNumber(string($LineLength), string($SourceLinearUnit), string($Parcel.Line_Segment_Length.unit), string($Parcel.Line_Segment_Length.precision), string($Parcel.Line_Segment_Length.rounding))"/> 
    	<xsl:choose>
    		<xsl:when test="$Parcel.Line_Segment_Length.unit='default'">
    			<xsl:choose>
    				<xsl:when test="$SourceLinearUnit='foot'">feet</xsl:when>
    				<xsl:when test="$SourceLinearUnit='meter'">meters</xsl:when>
    			</xsl:choose>
    		</xsl:when>
    		<xsl:when test="$Parcel.Line_Segment_Length.unit='foot'">feet</xsl:when>
    		<xsl:when test="$Parcel.Line_Segment_Length.unit='meter'">meters</xsl:when>
    	</xsl:choose>
    </xsl:template>
    
    <xsl:template match="lx:Curve">
    	<xsl:apply-templates select="." mode="set"/>
    	<xsl:variable name="CurveAngle" select="landUtils:GetCurveAngle()"/>
    	<xsl:variable name="CurveRadius" select="landUtils:GetCurveRadius()"/>
    	<xsl:variable name="ChordDir" select="landUtils:CalculateBearingDMS(./lx:Start,./lx:End)"/>
    	<xsl:variable name="ChordLength" select="landUtils:GetChordLength()"/>
    	;<br/>thence along a curve to the <xsl:value-of select="landUtils:GetCurveDirection()"/>,
    	having a radius of <xsl:value-of select="landUtils:FormatNumber(string($CurveRadius), string($SourceLinearUnit), string($Parcel.Curve_Segment_Radius.unit), string($Parcel.Curve_Segment_Radius.precision), string($Parcel.Curve_Segment_Radius.rounding))"/> 
    	<xsl:choose>
    		<xsl:when test="$Parcel.Curve_Segment_Radius.unit='default'">
    			<xsl:choose>
    				<xsl:when test="$SourceLinearUnit='foot'">feet,</xsl:when>
    				<xsl:when test="$SourceLinearUnit='meter'">meters,</xsl:when>
    			</xsl:choose>
    		</xsl:when>
    		<xsl:when test="$Parcel.Curve_Segment_Radius.unit='foot'">feet,</xsl:when>
    		<xsl:when test="$Parcel.Curve_Segment_Radius.unit='meter'">meters,</xsl:when>
    	</xsl:choose>
    	a delta angle of <xsl:value-of select="landUtils:FormatAngle(string($CurveAngle), string('default'), string($Parcel.Curve_Segment_Radius.unit), string($Parcel.Curve_Segment_Delta_Angle.format), string($Parcel.Curve_Segment_Delta_Angle.precision), string($Parcel.Curve_Segment_Delta_Angle.rounding))"/>,
    	and whose long chord bears <xsl:value-of select="$ChordDir"/>
    	a distance of <xsl:value-of select="landUtils:FormatNumber(string($ChordLength), string($SourceLinearUnit), string($Parcel.Curve_Segment_Chord_Length.unit), string($Parcel.Curve_Segment_Chord_Length.precision), string($Parcel.Curve_Segment_Chord_Length.rounding))"/> 
    	<xsl:choose>
    		<xsl:when test="$Parcel.Curve_Segment_Chord_Length.unit='default'">
    			<xsl:choose>
    				<xsl:when test="$SourceLinearUnit='foot'">feet</xsl:when>
    				<xsl:when test="$SourceLinearUnit='meter'">meters</xsl:when>
    			</xsl:choose>
    		</xsl:when>
    		<xsl:when test="$Parcel.Curve_Segment_Chord_Length.unit='foot'">feet</xsl:when>
    		<xsl:when test="$Parcel.Curve_Segment_Chord_Length.unit='meter'">meters</xsl:when>
    	</xsl:choose>
    
    </xsl:template>
    
    </xsl:stylesheet>
    Here is the .xsl coding. I have got it to the point where it does not error out, but nothing happens. I get my normal metes & bounds report.
    Last edited by Opie; 2014-10-15 at 08:47 PM. Reason: [code] tags added - smileys disabled

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,106
    Login to Give a bone
    0

    Default Re: Metes & Bounds and Area Reports

    Have you looked into the Surveyors Certificate report? It has code to provide this data.
    Attached Files Attached Files
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  5. #5
    Member
    Join Date
    2014-10
    Posts
    4
    Login to Give a bone
    0

    Default Re: Metes & Bounds and Area Reports

    Thank you so much! That is actually going to work perfect!

Similar Threads

  1. 2014: Metes and Bounds Report angle and direction settings
    By twhatley in forum AutoCAD Civil 3D - Parcels
    Replies: 5
    Last Post: 2015-04-06, 04:41 PM
  2. 2014: Room/Area reports - windows not included
    By archy in forum Revit Architecture - General
    Replies: 1
    Last Post: 2015-02-13, 03:37 PM
  3. lower & upper bounds of the current window/view?
    By n8wex in forum Dot Net API
    Replies: 4
    Last Post: 2009-09-29, 01:12 PM
  4. Metes and Bounds to show North Azimuths?
    By earlcenac in forum AutoCAD Annotation
    Replies: 5
    Last Post: 2007-12-01, 06:11 PM
  5. Room Area Reports
    By aggockel50321 in forum Revit Architecture - General
    Replies: 2
    Last Post: 2005-05-02, 05:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •