C++
Acad::ErrorStatus acedVPLayer( const AcDbObjectId& vpId, const AcDbObjectIdArray& layerIds, AcDb::VpFreezeOps operation );
File
aced.h
Description
This function modifies the viewport specified by vpId to freeze, thaw, or reset the layers specified by the object IDs in layerIds. If operation is AcDb::kFreeze, the specified layers will be frozen in the viewport. If operation is AcDb::kThaw, the specified layers will be thawed in the viewport. If operation is AcDb::Reset, the specified layers whose VPDFLT() method returns true will be frozen in the viewport and those whose VPDFLT() method returns false will be thawed in the viewport.
Warning
The viewport specified by vpId must be closed when this function is called.
operation may be one of the following: kFreeze, kThaw, kReset.
Returns Acad::eOk if successful.
Returns Acad::eInvalidInput under any of the following circumstances:
- if vpId is NULL or is not in the current drawing
- if the object specified by vpId is not an instance of either AcDbViewport or a class derived from AcDbViewport
- if operation is not valid
Parameters
Parameters | Description |
---|---|
vpId | Input object ID of the viewport on which to operate |
layerIds | Input array of object IDs of the AcDbLayerTableRecords to be frozen/thawed in the viewport |
operation | Input desired operation |