C++
virtual Acad::ErrorStatus writePoint2d( AcDb::DxfCode code, const AcGePoint2d& 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 point coordinate doubles in val to prec decimal places. If filing to a DXF file, file the X coordinate 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 you set when 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 point to be written out |
unnamed3 | Decimal places to use when writing out the 2D point |