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

Returns one of the following: 

 

Name 
Description 
eOk 
Success 
eIllegalReplacement 
This entity is non- database resident. 
eObjectToBeDeleted 
This entity is now non- database resident, and should be deleted. 

Fills the specified OdDb2dPolyline with data from this OdDbPolyline entity. 

 

If and only if transferId is true,

  • The destination OdDb2dPolyline entity will be made database resident.
  • It will assume the objectId, handle, extended entity data, extension dictionary, and reactors of this OdDbPolyline entity.
  • This OdDbPolyline entity will made non- database resident, and may be deleted with the C++ delete operator.
Copyright © 2002–2020. Open Design Alliance. All rights reserved.