CADDIT CAD CAM CNC Software - download AutoCAD compatible design software progeCAD Alibre T-FLEX and more
CADDIT Website Knowledge Base Search:

progeCAD Help

Welcome to progeCAD
Working with progeCAD
Command Reference
CAD System Variables
Programming progeCAD
Full Index (caution - 400kb)

Further Links:

Download progeCAD
Register progeCAD


T-FLEX PLM tutorial (PDF)
progeCAD IntelliCAD and AutoCAD training 
CATIA 2D 3D design tutorial
Alibre CAD/CAM basic tutorial


Educational CAD Software Solutions
Python scripting for DOS and Windows
Other free software downloads
CADDIT CAD CAM Forum Australia


double sds_angtof (const char *sangle, int format, double *rangle);

Change this angle to a real number.

This function converts a string, expressing an angle in one of the formats described below, to a real number expressing the angle in radians. The argument *sangle represents the given angle, in the chosen format. The argument format represents the type of string from which sds_angtof will convert the given number.

The following formats are available:

Format Description Example
format=0; Degrees 360d
format=1; Deg/Min/Sec 47d29'15"
format=2; Grads 132g
format=3; Radians 6.28r
format=4; Surveyor's Units N 82d W

The last argument, *rangle, represents the angle, expressed in radians.

This function returns RTNORM or an error code.


int format=0;

sds_real real1;

char string1[512];

sds_getstring(0,"\nEnter an angle in decimal degrees (eg. 47.5): ",string1);


sds_printf("\nThat's equal to %f radians. ",real1);


Enter an angle in decimal degrees (eg. 47.5): 90

That's equal to 1.5708 radians.

Programming Overview of SDS (Solutions Development System)





CADDIT® is a registered trademark in Australia. All Rights Reserved. Comments concerning the content of this site should be addressed to our webmaster. progeCAD is a trademark of ProgeCAD srl. Autodesk® and AutoCAD® are both registered trademarks or trademarks of a third party, and used only for comparison purposes. All other trademarks, trade names or company names referenced herein are used for identification only and are the property of their respective owners. Legal and Terms of Use. Google. Find us on Google+.