Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbPolyline::convertFrom Method
Syntax
C++
OdResult convertFrom(OdDbEntity* pSource, bool transferId = true);

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

 

Parameters
Description
pSource
[in] Pointer to the source OdDb2dPolyline entity.
transferId
[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.

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-2022. Open Design Alliance All rights reserved.