C++
ACDBCORE2D_PORT Acad::ErrorStatus setUcs( const AcGePoint3d& ucsOrigin, const AcGeVector3d& ucsXDir, const AcGeVector3d& ucsYDir );
Description
This method sets the Model Space UCS to the UCS defined by ucsOrigin, ucsXDir, and ucsYDir. The ucsorg(), ucsxdir(), and ucsydir() 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.