IiLogicAutomationAddRule Method |
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: 23.0
Syntax Function AddRule (
doc As Document,
ruleName As String,
ruleText As String
) As iLogicRule
iLogicRule AddRule(
Document doc,
string ruleName,
string ruleText
)
Parameters
- doc
- Type: Document
The document where the rule will be created. - ruleName
- Type: SystemString
The rule name. - ruleText
- Type: SystemString
The rule contents.
Return Value
Type:
iLogicRuleRemarks The rule will be compiled and run.
See Also