C++
AcGeVector3d viewDirection() const;
Description
This function returns an AcGeVector3d that is the vector (in WCS coordinates) from the view's target to the view's camera. This also represents the point coordinate set by the AutoCAD VPOINT command. See the AutoCAD VPOINT command documentation for more information on view direction.
The view direction is used for DXF group code 11 in AcDbViewTableRecords and group code 16 in AcDbViewportTableRecords.