C++
ACDBCORE2D_PORT Acad::ErrorStatus setPucs( const AcGePoint3d& ucsOrigin, const AcGeVector3d& ucsXDir, const AcGeVector3d& ucsYDir );
Description
This method sets the Paper Space UCS to the UCS defined by ucsOrigin, ucsXDir, and ucsYDir. The pucsorg(), pucsxdir(), and pucsydir() are the query functions for this UCS.
Parameters
| Parameters | Description |
|---|---|
| ucsOrigin | Input origin (in WCS coordinates) of new UCS |
| ucsXDir | Input X Axis (In WCS coordinates) of new UCS |
| ucsYDir | Input Y Axis (In WCS coordinates) of new UCS |
Returns
Returns Acad::eOk if successful. Returns Acad::eInvalidInput if ucsXDir is not perpendicular to ucsYDir. Returns Acad::eInvalidContext if called on an AcDbDatabase that is open in the AutoCAD editor.
Notes
This method only works for AcDbDatabases that are not loaded in the AutoCAD editor.