Share

AcDbDxfFiler::elevation

C++

virtual double elevation() const;

Description

Before AutoCAD Release 11, the elevation was stored in its own data item with the DXF group code AcDb::kDxfElevation (value 38). From AutoCAD Release 11 onward, the elevation value has been stored as the Z coordinate of the points in an entity's data. However, this data group is still honored.

When a DXF file is read in that has a separate elevation value, it's read in by the AcDbEntity::dxfInFields() method. But this data is important for the entity object itself to know, so this method is provided.

The implementation of this function should follow that of the ObjectARX internal filers. It should return the elevation of the object. The returned value returned is 0.0 if the object data being read does not contain an elevation value (an AcDb::DxfCode of AcDb::kDxfElevation).

If this function is called when the filer is filing out, AutoCAD is terminated.

Links

AcDbDxfFiler

Was this information helpful?