csthArc

Discuss and ask questions about CADEditorX and XML API.

Moderators: SDS, support, admin

Post Reply
agvs
Posts: 30
Joined: 16 Jun 2016, 11:10

csthArc

Post by agvs » 28 Oct 2016, 10:40

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.

support
Posts: 3253
Joined: 30 Mar 2005, 11:36
Contact:

Re: csthArc

Post by support » 28 Oct 2016, 21:23

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

agvs
Posts: 30
Joined: 16 Jun 2016, 11:10

Re: csthArc

Post by agvs » 31 Oct 2016, 07:30

Thanks!!!

support
Posts: 3253
Joined: 30 Mar 2005, 11:36
Contact:

Re: csthArc

Post by support » 02 Nov 2016, 18:40

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply