Page 1 of 1
csthArc
Posted: 28 Oct 2016, 10:40
by agvs
Hi,
Can you help me as advice what problem I have for csthArc?
this is my source
Process("\n <add>" +
"\n<csthArc CenterPoint =\"49.5862,104.1297,0\" EndParam =\"137.3445,56.1871\" Radius =\"100\" StartParam =\"97.5288,16.3714\" />" +
"\n</add>"+
"\n<fittosize/>"
);
I couldn't draw the Arc. help me, please.
Re: csthArc
Posted: 28 Oct 2016, 21:23
by support
Hello,
The
cstArc object is defined by the center point (Point), radius, start and end angles. Please modify your XML string as shown below:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<cadsofttools version="2">
<add>
<cstArc Point="49.5862,104.1297,0" EndAngle="137.3445,56.1871" Radius="100" StartAngle="97.5288,16.3714" />
</add>
<fittosize />
</cadsofttools>
Mikhail
Re: csthArc
Posted: 31 Oct 2016, 07:30
by agvs
Thanks!!!
Re: csthArc
Posted: 02 Nov 2016, 18:40
by support
Hello,
Please don't confuse
cstArc and
csthArc objects, they both define an arc, but have different purpose:
cstArc represents an ARC entity in the drawing database.
csthArc defines a 2D arc which is a part of hatch boundary path. For example:
Code: Select all
<cstCurvePolygon Color="0;3;" SolidFill="True">
<Boundaries>
<Boundary Flags="1">
<csthArc CenterPoint="0,0" Radius="5" StartParam="0" EndParam="180"/>
</Boundary>
</Boundaries>
</cstCurvePolygon>
StartParam and
EndParam denote the start and end angle, respectively.
Mikhail