ade_dsproplist

Land Desktop Development ARX CPP SDK

Up a level
ade_dsproplist
 
 

Lists all values found in the drawing set for a given drawing property.

struct resbuf*

ade_dsproplist(

char* property);

Returns a list of values or NULL.

property Drawing property. See Drawing Properties below.

The function searches all active source drawings and returns a list of the values it finds for the given drawing property.

The following table shows property names and return values.

Drawing Properties
object_type AutoCAD object types (string)
blockname Block names (string)
linetype Line type names (string)
textstyle Text style names (string)
attrib Attribute name tags (string)
extents Computed extents: the lower-left and upper-right points in the set of active source drawings.
For example: ((2.20286 4.99866) (20.4689 12.3563))
group Group names (string)
layer Layer names (string)
lpn Link templates (string). Note that link path names (LPNs) have been replaced by link templates in AutoCAD Map.
objdata Names of object data tables. Table names can be up to 25 characters long (string). Must be unique, contain no spaces, and start with an alphanumeric character
mlinestyle Mline style (string)
feature Feature name (string)
lineweight Line weight (string)
plotstyle Plot style (string)

The following sample parses the resbuf returned by ade_dsproplist() and prints a list of object data tables. Then it releases the resbuf, as required.

char* pszPropValue = "objdata";
struct resbuf* pDwgSetPropertyRb = ade_dsproplist(pszPropValue);
if(NULL != pDwgSetPropertyRb ) {
    struct resbuf* rb = pDwgSetPropertyRb;
    while(rb != NULL) {
        acutPrintf(
                "\nThe current drawing set contains the following %s information: %s",
                pszPropValue, rb->resval.rstring);
        rb = rb->rbnext;
    }
}
else{
    acutPrintf(
        "\nNo data could be retrieved.");
}
acutRelRb(pDwgSetPropertyRb);