API Reference > Functions > oddbEvaluateFields Function
oddbEvaluateFields Function
Syntax
C++
DBENT_EXPORT OdResult oddbEvaluateFields(OdDbDatabase* pDb, int nContext, const OdDbObjectIdArray* objIds = 0, const OdDbObjectIdArray* pFieldsToEvaluate = 0, const OdString& pszEvaluatorId = OdString(), OdFd::EvalFields nEvalFlag = OdFd::kEvalRecursive, int* pNumFound = 0, int* pNumEvaluated = 0);

FdField.h

Parameters 
Description 
OdDbDatabase* pDb 
[in] Pointer to the database for which fields are to be evaluated  
int nContext 
[in] Input context in which the field is evaluated, which can be a predefined *OdDbField::EvalContext* enum flag or a user-defined context flag; this context flag is passed to the evaluator  
const OdDbObjectIdArray* objIds = 0 
[in] Input array of object IDs of objects, whose fields are to be evaluated. If this is not null only, fields will be evaluated only for these objects.  
const OdDbObjectIdArray* pFieldsToEvaluate = 0 
[in] Input array of object IDs of fields to be evaluated. If this is not null only these fields in the specified objects will be evaluated. If this is null all the fields in the specified objects will be evaluated.  
const OdString& pszEvaluatorId = OdString() 
[in] Input evaluator ID. If this is not null only the fields matching this evaluator ID will be evaluated. If this is null all the fields in the specified objects will be evaluated.  
OdFd::EvalFields nEvalFlag = OdFd::kEvalRecursive 
[in] Input one or more OdFd::EvalFields option flags  
int* pNumFound = 0 
[out] Output pointer to store the number of fields found; can be null if this information is not required  
int* pNumEvaluated = 0 
[out] Output pointer to store the number of fields evaluated; can be null if this information is not required 

Evaluates fields in database.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.