• progeCAD in French Language
  • progeCAD in Spanish Language
  • progeCAD in English Language
Home > Support > SDS API > SDS C++ Reference > SDS Functions > sds_layoutsearch 

sds_layoutsearch

sds_layoutsearch

sds_layoutsearch

int sds_layoutsearch (const char* layoutname, sds_name entname);


Determine the entity name of a specified layout object.


Given the name of a layout object, the function returns the entity name.

The argument layoutname is the name of the layout object whose entity name you wish to retrieve.

The argument entname is the entity name returned for the given layout object name.

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

Example

sds_name entname1;

sds_name_clear(entname1);

struct sds_resbuf *entlist = NULL;

// Find Layout1

if (sds_layoutsearch("Layout1", entname1) == RTNORM)

{

// Get the entity data

entlist = sds_entget(entname1);

// Release the resbuf

if (entlist != NULL)

sds_relrb(entlist);

}

Programming Overview of SDS (Solutions Development System)

sds_layoutgetcur

sds_layoutmake

sds_layoutsetcur

 
DWG is the native file format for Autodesk AutoCAD®. Autodesk and AutoCAD are registered trademarks or trademarks of Autodesk, Inc. in the USA and/or other countries. progeSOFT and progeCAD are registered trademarks or trademarks of progeCAD s.r.l. in the USA and/or other countries.