API Reference > OdDb Classes > OdDb2dPolyline Class > OdDb2dPolyline Methods > insertVertexAt Method > OdDb2dPolyline::insertVertexAt Method (OdDb2dVertex*, OdDb2dVertex*)
OdDb2dPolyline::insertVertexAt Method (OdDb2dVertex*, OdDb2dVertex*)
Syntax
C++
OdDbObjectId insertVertexAt(const OdDb2dVertex* pIndexVert, OdDb2dVertex* pVertex);
Parameters 
Description 
const OdDb2dVertex* pIndexVert 
[in] Pointer to 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–2020. Open Design Alliance. All rights reserved.