API Reference > OdDb Classes > OdDb2dPolyline Class > OdDb2dPolyline Methods > insertVertexAt Method > OdDb2dPolyline::insertVertexAt Method (OdDbObjectId&, OdDb2dVertex*)
OdDb2dPolyline::insertVertexAt Method (OdDbObjectId&, OdDb2dVertex*)
Syntax
C++
OdDbObjectId insertVertexAt(const OdDbObjectId& indexVertId, OdDb2dVertex* pVertex);
Parameters 
Description 
const OdDbObjectId& indexVertId 
[in] Object ID of vertex after which to insert the specified vertex.  
OdDb2dVertex* pVertex 
[in] Pointer to the Vertex entity to be inserted. 

Returns the Object ID of the newly inserted vertex. 

The Vertex will be made database resident. 

If this Polyline entity is not database resident, the vertex will be made database resident when the polyline is made database resident. 

To insert the specified Vertex at the start of this Polyline, use a null indexVertexId.

Inserts the specified Vertex entity into this Polyline entity after the specified vertex, and makes this Polyline its owner.

The Vertex entity must explicitly be closed when insertertex() returns. 

 

Copyright © 2002–2021. Open Design Alliance. All rights reserved.