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

sds_layoutgetcur

sds_layoutgetcur

sds_layoutgetcur

int sds_layoutgetcur (sds_name entname);


Return the name of the current layout.


The function returns the name of the currently selected layout entity.

The argument entname returns the entity name of the current layout object.

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

Example

sds_name_clear(entname1);

struct sds_resbuf *entlist = NULL;

// Get the current tab

if (sds_layoutgetcur(entname1) != RTNORM)

{

sds_printf("\nCould not get the current layout.");

return 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_layoutmake

sds_layoutsearch

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.