<< Click to Display Table of Contents > 

Client Control Interface Manual > Programming Examples > Fit to entity

Fit to entity
Previous pageReturn to chapter overviewNext page

The following examples shows how to fit the view to a specific entity.

 

Fit view to an entity

 

// set entity name here, for example "EntityName";

string EntityName = 

 

// deselect all

cci.ScSetEntityLongData( "",

    ( int ) ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdEntitySelected |

    ( int ) ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdFlagDontUpdateView, 0 );

 

// select

cci.ScSetEntityLongData( EntityName,( int ) ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdEntitySelected, 1 );

cci.ScExecCommand( ( int )ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandFitViewToSelectedEntities );

Table 404: Fit view to an entity