API Reference > OdDAI Namespace > Classes > Entity Class > Entity Methods > Entity::findWhereRule Method
Entity::findWhereRule Method
Syntax
C++
OdDAI::WhereRulePtr findWhereRule(const char * ruleName) const;
Parameters 
Description 
const char * ruleName 
[in] An ANSI string that contains the name of the rule to find.  

A smart pointer to OdDAI::WhereRule.

For entity definition and all its supertypes tries to recursively find WR Rule instance with name ruleName. Stops searching on first occurrence of rule with name provided.

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