Gets "ARC" data from selected CAD data LTCustomizer21 for AutoCAD LT reference manual


ActiveX
Function get_select_arc(ename As Integer, ByRef center_x As Double, ByRef center_y As Double, ByRef center_z As Double, ByRef radius As Double, ByRef start_angle As Double, ByRef end_angle As Double) As Boolean

C/C++
int WINAPI LTC_get_select_arc(int ename,double center[3],double *r,double *sang,double *eang);

parameter
ename :index number read by select(). Specifies a value in range of 0 - return value of select() -1.
center[3](C/C++ ):center point of arc. 1st index is X. 2nd index is Y. 3rd index is Z
center_x,center_y,center_z(ActiveX):center point of arc.
radius ,*r:radius
start_angle ,*sang: start angle of arc(degree)
end_angle ,*eang:end angle of arc(degree)

return value
1:success 0:failure

If data ename indicates is arc, get_select_arc returns information of arc.

Caution:
In case of point when you drew on User Coordinates System(UCS),the coordinates is on local coordinates system(UCS) you set. if you don't know coordinates of AutoCAD LT, recognize that World Coordinates System(WCS, first coordinates after AutoCAD LT run ) is basic coordinates system. In this case, the CAD data is added DXF group code 210,220,230(means normal vector which see from WCS). So you have to convert if you use the point as WCS. Also you consider origin coordinates of UCS you set. Origin coordinates of UCS can get by using read_DXF_table(). About detail of this thing, refer to UCS,OCS in AutoCAD or AutoCAD LT help.