Adds a rule to an Inventor document. Also compiles and runs it.
Namespace: Autodesk.iLogic.Interfaces
Assembly: Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 30.0
Syntax
VB
Function AddRule ( doc As Document, ruleName As String, ruleText As String ) As iLogicRule
C#
iLogicRule AddRule( Document doc, string ruleName, string ruleText )
Parameters
- doc
- Type: Document
The document where the rule will be created. - ruleName
- Type: System.String
The rule name. - ruleText
- Type: System.String
The rule contents.