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

sds_layoutsetcur

sds_layoutsetcur

sds_layoutsetcur

int sds_layoutsetcur (sds_name entname);


Set the current layout.


The function sets the current layout object.

The argument entname is the entity name of the layout object to be set to current.

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

Example

sds_name entname1;

sds_name_clear(entname1);

// Finds the Model tab and sets as the current tab

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

{

// Now set Model as the current tab

if (sds_layoutsetcur(entname1) != RTNORM)

{

sds_printf("\nError: Could not set the current tab.");

}

}

// Finds Layout1 tab as sets as the current tab

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

{

// Now set Layout1 as the current tab

if (sds_layoutsetcur(entname1) != RTNORM)

{

sds_printf("\nError: Could not set the current tab.");

}

}

Programming Overview of SDS (Solutions Development System)

sds_layoutgetcur

sds_layoutmake

sds_layoutsearch

 
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.