VCLastEntity


Version:

1.2

Description:

Retrieves the entity handle of the last entity in the database.

Declaration:

 

C/C++

extern "C" void WINAPI VCLastEntity(short* iError, ENTITYHANDLE* lH);

Delphi

procedure VCLastEntity(var iError: Smallint; var lH: Longint); stdcall;

ActiveX/COM

Function LastEntity() As Long

Parameters:

lH - entity handle for the last entity in the database.

Notes:

After creating new objects in the Visual CADD™ database it must be drawn before it appears on the screen. This can be done by the user doing a zoom or redraw or through code using VCDrawCurrentEntity. However the entity must first be current. VCLastEntity retrieves the handle of the last entity in the database. All entities added to the drawing database are added to the end and will thus be the last entity. However, VCLastEntity does NOT make it the current entity. Use VCSetCurrentEntity to make the entity current so it can be displayed.

See Also:

VCSetCurrentEntity, VCNextEntity, VCFirstEntity, VCFirstSelected, VCNextSelected, VCFirstSelected, VCNextSelected