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


int sds_entmake (const struct sds_resbuf *entity-list);

Make a new object with these properties.

This function creates an object in the drawing database, given the entity information for a new object. This is the reciprocal function to sds_entget.

The argument entlist represents a pointer to a linked list of sds_resbuf structures containing the object information for a new object. The following objects cannot be created: viewports, xrefs, xdefs, and xdeps.

The first or second buffer in the list must specify the entity type (a valid DXF entity type). When the first buffer does not specify the type, it must specify the entity name in the same format returned by sds_entget.

Text style names, linetype names, shape names, and block names must be already defined in the drawing before your pass the entity list to sds_entmake; the layer names are the exception. The list must not include the name of a handle.

To create a complex object, such as polyline or block, make more than one call to sds_entmake, with one call for each subentity. The complex entity is not added to the drawing until it is complete.

This function returns RTNORM (when it is successful), RTKWORD (when it creates the endblk of a block), or RTREG (when it cannot update the database) and sets system variable ERRNO to the reason code.


sds_point point1 = {1.0,3.0,0.0};

sds_point point2 = {7.0,3.0,0.0};

entlist=sds_buildlist(RTDXF0, "line", // Entity type

8, "0", // Layer name

62, 70, // Color number

10, point1, // Starting point for the line

11, point2, // Ending point for the line

RTNONE); // List always ends with RTNONE or 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+.