AutoCAD Civil 3D
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Re: XML Parcel Legal Descriptio n Errors
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Wow, this is amazing! I have been messing with these files for the last 5 years. I have only been able to change the verbage for the legal writer and would bang my head on the wall looking at the .xsl files. I had all but given up saying that it was impossible for autocad to tell if a line was compound, reverse or non-tangent. Impossible or no body at autodesk actually care what problems us lowly surveyor's had with the program. I want to personally thank the 2 of you for making this possible. No longer can I curse autocad for not being able to write a proper legal description, now if we can just fix/get rid of survey figures. If any of you 2 are in the West Chester, PA I will buy you a beer for your efforts. Thank you and have a nice day! <@![]()
Re: XML Parcel Legal Descriptio n Errors
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Just noticed this in the General Legal Description for Parcel.xsl ![]()
<!--added by srd. set acres first unless LessThan 1 acre xsl sucks-->
couldn't agree more!
Windows 7 x64
Re: XML Parcel Legal Descriptio n Errors
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I found an error in one of the functions I posted earlier. It would fail at a point of non-tangent compound curve. The revised function comments out line "//else if(check == "Reverse")" and will work as expected.
function GetLegalForCurve(index)
{
var i = parseInt(index);
var geoele = GeomArray[i];
var nextEle = GeomArray[i + 1];
var retStr = geoele.type + index + " ";
if(nextEle)
{
var bTangent = IsNextTangent(i);
if(nextEle.type == "Line")
{
var xmlEle;
if(bTangent == true)
{
xmlEle = xmlGeom.selectSingleNode("Metes/Mete[@type='Curve' and @connect='TangentLine']");
}
else
{
xmlEle = xmlGeom.selectSingleNode("Metes/Mete[@type='Curve' and @connect='NonTangentLine']");
}
//var subStr = xmlEle.text;
var subStr = GetInnerXML(xmlEle);
retStr = SubstituteCurveKeywords(index, subStr);
}
else if(nextEle.type == "Curve")
{
var xmlEle;
if(bTangent == true)
{
//var check = CompareNextCurveDirection(i);
//if(check == "Reverse")
var CompoundCheck = IsNextCurveCompound(i);
if(CompoundCheck == false)
{
xmlEle = xmlGeom.selectSingleNode("Metes/Mete[@type='Curve' and @connect='TangentReverseCurve']");
}
//else if(check == "Compound")
else if(CompoundCheck == true)
{
xmlEle = xmlGeom.selectSingleNode("Metes/Mete[@type='Curve' and @connect='TangentCompoundCurve']");
}
//var subStr = xmlEle.text;
var subStr = GetInnerXML(xmlEle);
retStr = SubstituteCurveKeywords(index, subStr);
}
else
{
//var check = CompareNextCurveDirection(i);
//if(check == "Compound")
var CompoundCheck = IsNextCurveCompound(i);
if(CompoundCheck == false)
{
xmlEle = xmlGeom.selectSingleNode("Metes/Mete[@type='Curve' and @connect='NonTangentCompoundCurve']");
}
//else if(check == "Reverse")
else if(CompoundCheck == true)
{
xmlEle = xmlGeom.selectSingleNode("Metes/Mete[@type='Curve' and @connect='NonTangentReverseCurve']");
}
//var subStr = xmlEle.text;
var subStr = GetInnerXML(xmlEle);
retStr = SubstituteCurveKeywords(index, subStr);
}
}
else
{
retStr = "CurveToOther ";
}
}
return retStr;
}
function GetLegalForSpiral(index)
{
var retStr = "Spiral ";
return retStr;
}
Re: XML Parcel Legal Descriptio n Errors
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks you so much for these files. it has helped out enormously. One thing that I have found is that when you have a curve that is tangent to the previous line but not tangent to the following line the program writes the correct verbage for the line but not for the curve.
For example:
thence North 9°18'13" East, a distance of 87.67 feet to the beginning of a tangent curve to the left, to which a radial line bears South 80°41'47" East; THENCE northwesterly along said non-tangent curve, having a radius of 160.00 feet, through a central angle of 39°48'37", an arc distance of 111.17 feet;
the program called out the line correclty as "to the beginning of a tangent curve to the left"
but the program called out the curve as a non-tangent curve "to which a radial line bears South 80°41'47" East; THENCE northwesterly along said non-tangent curve, having a radius of 160.00 feet, through a central angle of 39°48'37", an arc distance of 111.17 feet;" for non-tangent curves.
not that big of a deal but i thought i would through it out there.
Re: XML Parcel Legal Descriptio n Errors
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Maybe you have already fixed this issue with the previous mentioned coding changed. Is it possible you can share your files agian.
Many thanks!!
Chad
Re: XML Parcel Legal Descriptio n Errors
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I have enclosed the files for you to look at. Rename the .txt files to .xls. We have been so busy that I haven't had time to check if the error still exists. If it is still there and you understand the code, take a look at the coord LegalDescription_Layout.xsl around line 604.
I use notepad++ to edit the files. It makes it so much easier.
Re: XML Parcel Legal Descriptio n Errors
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks for these files.
I am still having these issues though. It looks like the program checks to see if the curve is tangent to the following line and not the previous line.
I don't think you don't have these issues because you write your legals a little different then I do.
Anyways, it is something that I can deal with since it is a simple change in word.
I'm glad to hear that you guys are busy. If you have nothing else to do and want to look into this, i would appreciate it. ![]()
Re: XML Parcel Legal Descriptio n Errors
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks for the files, they really helped!
I was wondering if there was a way to have separate lines for where the segment begins with a:
non-tangent line
reverse curve
compound curve
The way our surveyor writes his descriptions for these instances is
Thence xx-xx-xx along said non-tangent line ......
And for curves he uses "curve to the left or right" for tangent curves, but not for reverse or compound curves.
Thanks
Bill
c3d 2012, w7 x64
Re: XML Parcel Legal Descriptio n Errors
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
In the GeneralLegalPhrasings.xml file, there are sections for each type of curve. You can edit each of these sections independently.
<Mete type="Line" connect="TangentCurve"> <p> <p><B>THENCE </B> {lineDirection}, a distance of {lineDistanceFoot} feet to a point at the beginning of a tangent curve </Mete>
<Mete type="Line" connect="NonTangentCurve">
<p> <p><B>THENCE </B> {lineDirection}, a distance of {lineDistanceFoot} feet to a point at the beginning of a non-tangent curve </Mete>
<Mete type="Curve" connect="TangentLine">
to the {curveRotation} having a central angle of {curveAngle}, a radius of {curveRadiusFoot} feet, a chord bearing and distance of {curveChordDirection}, {curveChordLengthFoot} feet;<p> <p><B>THENCE </B>
Re: XML Parcel Legal Descriptio n Errors
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks for the reply. Its hard to explain, but when we go to a non-tangent line, the wording our surveyor uses to describe that non-tangent line is different then when it is a tangent line. So what I was looking for was to be able to have additional sections for where the segment is a "non-tamgent line" connect = line, curve, non-tangemt curve etc.
For curves, he uses the direction (left or right) in the wording of the curve. But when a curve connects to a reverse or compound curve he omits the direction (left or right) from the wording of the compound or reverse curve. So for curves I would need additional sections for "compound curve" connect = line, non-tangent line, reverse curve, etc;
and "reverse curve" connect = line, non-tangent line, compound curve, etc.
Thanks
Bill



