API Reference > OdDAI Namespace > Classes > GlobalRulesValidationTask Class > GlobalRulesValidationTask Methods > GlobalRulesValidationTask::validate Method
GlobalRulesValidationTask::validate Method
Syntax
C++
virtual OdDAI::Logical validate(OdDAI::OdBaseModelValidationContext* pCtx, OdSharedPtr<InvalidValidationParamsBase>& invalidParams) override;
Parameters 
Description 
pModelCtx 
[in] A raw pointer to the validation context with validate model.  
invalidInstances 
[out] A pointer to InvalidValidationParamsBase which contains GlobalRules with validation problems.  

True if all global rules validations are successful; otherwise, the method returns False.

Checks model global rules.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.