C++
virtual Acad::ErrorStatus writeVector2d( AcDb::DxfCode code, const AcGeVector2d& val, int prec = kDfltPrec ) = 0;
Description
The implementation of this function should follow that of the ObjectARX internal filers. It should:
- Check the current filer status. If it's Acad::eOk, then continue, or else return the current status.
- Write out the AcDb::DxfCode in code.
- Write out the X, and Y vector doubles in val to prec decimal places. If filing to a DXF file, file the X value out, then file out the DxfCodecode+10, then file out the Y value.
If prec is the default of kDfltPrec ( a value of -1), then the internal default precision is used. If this filing operation is for a DXFOUT command, the precision that's been set by the user executing the DXFOUT command is considered the internal default.
- Return an Acad::ErrorStatus value indicating the success or failure of the operation (use Acad::eOk to indicate success).
Parameters
Parameters | Description |
---|---|
unnamed1 | DXF group code to be written out |
unnamed2 | 2D vector to be written out |
unnamed3 | Decimal places to use when writing out the 2D vector |