Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbField::evaluate Method
Syntax
C++
OdResult evaluate(int nContext, OdDbDatabase* pDb = 0, int* pNumFound = 0, int* pNumEvaluated = 0);

Returns the evaluated Field object.

Parameters
Description
nContext
[in] Context in which the field is evaluated; the context flag can be one of the
pDb
[in] Database to be used for the evaluation; can be null.
pNumFound
[out] Pointer to receive the number of fields evaluated; can be null if not required.
pNumEvaluated
[out] Pointer to receive the number of fields evaluated; can be null if this information is not required.
predefined
OdDbField::EvalContext enum flags or a user-defined context flag.

After creating a field object and setting the field code, call this method to evaluate the field. If pDb is null, the field's database will be used if the field is a database resident. If it is null and the field is not a database resident, evaluation will fail if the field requires a database. 

 

Copyright © 2002-2022. Open Design Alliance All rights reserved.