API Reference > OdDb Classes > OdDb2dPolyline Class > OdDb2dPolyline Methods > OdDb2dPolyline::convertToPolyType Method
OdDb2dPolyline::convertToPolyType Method
Syntax
C++
OdResult convertToPolyType(OdDb::Poly2dType newVal);
Parameters 
Description 
OdDb::Poly2dType newVal 
[in] Polyline type. 

Convert 2D-Polyline to the specified type. 

 

newVal must be one of the following: 

 

Name 
Value 
Description 
OdDb::k2dSimplePoly 
Simple polyline. 
OdDb::k2dFitCurvePoly 
Curve fit (DXF 70, bit 0x04). 
OdDb::k2dQuadSplinePoly 
Quadratic B-spline fit (DXF 80, bit 0x08; DXF 75 == 5). 
OdDb::k2dCubicSplinePoly 
Cubic B-spline-fit (DXF 80, bit 0x08; DXF 75 == 6). 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.