Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
InstanceValidationTask::validate Method
Syntax
C++
virtual OdDAI::Logical validate(OdDAI::InstanceValidationContext* pInstanceCtx, OdSharedPtr<InvalidValidationParamsBase>& invalidParams) = 0;

Checks whether attributes of the specified instance meet specified rules and forms a list of attributes that violate any of the rules.

Parameters
Description
pInstanceCtx
[in] A raw pointer to the instance validation context object that contains an entity instance to be validated.
invalidParams
[out] A shared pointer to an InvalidValidationParamsBase object. After method execution, this object contains a list of constraints that are violated and a list of attributes that violate constraints.
  • True if the validation passes.
  • False if any constraint is violated.
  • Unknown if the constraint expression is unknown or is not defined.
Copyright © 2002-2022. Open Design Alliance All rights reserved.