API Reference > OdDb Classes > OdDbPolyline Class > OdDbPolyline Methods > OdDbPolyline::convertFrom Method
OdDbPolyline::convertFrom Method
Syntax
C++
OdResult convertFrom(OdDbEntity* pSource, bool transferId = true);
Parameters 
Description 
OdDbEntity* pSource 
[in] Pointer to the source OdDb2dPolyline entity.  
bool transferId = true 
[in] True to do a handOverTo() between the source OdDb2dPolyline entity and this OdDbPolyline entity. 

Returns one of the following: 

 

Name 
Description 
eOk 
Success 
AlreadyInDb 
This entity is database resident 
eIllegalEntityType 
*pSource is not an OdDb2dPolyline 
eNotApplicable 
*pSource is not k2dSimplePoly or there is extended 
 
entity data attached to a vertex. 

Fills this OdDbPolyline entity with data from the specified OdDb2dPolyline entity. 

 

If and only if transferId is true,

  • This OdDbPolyline entity will be made database resident.
  • It will assume the objectId, handle, extended entity data, extension dictionary, and reactors of the source OdDb2dPolyline entity
  • The source OdDb2dPolyline entity will be deleted.

 

The source OdDb2dPolyline entity

  • Must be non- database resident.
  • Must by of type k2dSimplePoly or k2dFitCurvePoly.
Copyright © 2002–2020. Open Design Alliance. All rights reserved.