Share

acedSetCurrentVPort

C++

ACCORE_PORT Acad::ErrorStatus acedSetCurrentVPort(
    int vpnumber
);

File

aced.h

Description

This function sets the current viewport from the viewport index vpnumber. Viewport index numbers are the numbers reported by the CVPORT system variable.

SysVarWillChange and SysVarChanged notification are generated by this function.

Parameters

Parameters Description
vpnumber Input index number of viewport to make current

Returns

Returns Acad::eOk if successful.

Returns Acad::eOutOfRange if vpnumber isn't valid for the current environment.

Previous Declaration

AutoCAD 2025 and Earlier

Acad::ErrorStatus acedSetCurrentVPort(int vpnumber);

Was this information helpful?