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

progeCAD Help

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

Further Links:

Download progeCAD
Register progeCAD

Learning

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

Resources

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

sds_bbox

int sds_bbox(const sds_name entname, sds_point lowerleft, sds_point upperright);


Determine the bounding box of an entity.


Given the name of an entity, this function returns the lower left and upper right points of the entity’s bounding box.

The argument entname is the name of the entity whose bounding box is to be determined.

The argument lowerleft returns the lower left point of the entity’s bounding box.

The argument upperright returns the upper right point of the entity’s bounding box.

The function returns RTNORM if successful; otherwise, it returns RTERROR.

Example

sds_point lowerleft, upperright;

sds_name entname;

sds_name_clear(entname);

if (sds_entlast(entname) == RTNORM)

{

if (sds_bbox(entname, lowerleft, upperright) == RTNORM)

{

// Draw a grdraw box around the bounding box

sds_point upperleft, lowerright;

upperleft[0] = lowerleft[0];

upperleft[1] = upperright[1];

upperleft[2] = lowerleft[2];

lowerright[0] = upperright[0];

lowerright[1] = lowerleft[1];

lowerright[2] = upperright[2];

sds_grdraw(lowerleft, upperleft, 1, 0);

sds_grdraw(upperleft, upperright, 1, 0);

sds_grdraw(upperright, lowerright, 1, 0);

sds_grdraw(lowerright, lowerleft, 1, 0);

}

}

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+.