Share

AcDb2dVertex

Class Hierarchy

AcRxObject
    AcGiDrawable
        AcDbObject
            AcDbEntity
                AcDbVertex
                    AcDb2dVertex

C++

class AcDb2dVertex : public AcDbVertex;

File

dbents.h

Description

The AcDb2dVertex class represents the vertices in 2D polylines.

AcDb2dVertex is the only ObjectARX API entity that still passes its position in OCS. This is because the Z coordinate is kept in its owning AcDb2dPolyline for historical purposes. If you are not working in two dimensions, it may be better to use an AcDb3dPolyline, or an AcDbSpline.

Notes

AcDb2dVertex objects contain the AcDbEntity methods to set the entity properties such as color, layer, and linetype. However, vertices are subentities that must have the same entity properties as the parent polyline. Therefore, using the AcDbEntity methods within the AcDb2dVertex objects to change these properties to values other than those of the parent will result in corrupt vertices. An audit can fix those corrupt vertices.

Do not derive from this class. Attempting to do so will cause your application to halt AutoCAD.

Links

AcDb2dVertex Constructor, AcDb2dVertex Methods

See Also

AcDbObject, AcDbEntity, AcDb2dPolyline

Was this information helpful?