VCGetCurrentView
VCSetCurrentView


Version:

2.0

Description:

Returns or sets the Visual CADD™ view handle of the current drawing world

Declaration:

 

C/C++

extern "C" void WINAPI VCGetCurrentView(short* iError, short* iView); 
extern "C" void WINAPI VCSetCurrentView(short* iError, short iView);

Delphi

procedure VCGetCurrentView(var iError: Smallint; var iView: Smallint); stdcall;
procedure VCSetCurrentView(var iError: Smallint; iView: Smallint); stdcall;

ActiveX/COM

Function GetCurrentView() As Integer
Sub SetCurrentView(ByVal iView As Integer)

Parameters:

iView - the Visual CADD™ world handle returned when VCNewWorld is used.

Notes:

Version 2.0 and beyond allow multiple views of the same drawing. VCGetCurrentView helps you keep track of the number of instances of multiple views that are running. Returns a value between 0 and 63.

See Also:

VCIsCurrentWorldValid, VCNewWorld, VCDestroyWorld