Click or drag to resize

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

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: iLogicRule
Remarks
The rule will be compiled and run.
See Also