Click or drag to resize

IiLogicAutomation Interface

iLogic Automation interface. This can be called from COM or .NET, from a rule or an addin or from out-of-process.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 23.0
Syntax
Public Interface IiLogicAutomation

The IiLogicAutomation type exposes the following members.

Properties
  NameDescription
Public propertyCallingFromOutside
Set this to True if you are calling from out-of-process.
Public propertyFileOptions
Gets an object from which the iLogic file and directory-related options can be examined or modified.
Public propertyInDelayedRuleRunningMode
Indicates that iLogic is in delayed rule-running mode.
Public propertyInternalVersionMajor
Gets the major version number of the iLogic addin.
Public propertyInternalVersionMinor
Gets the minor version number of the iLogic addin.
Public propertyInventorParamMultiValues
Gets or sets the multivalue list of an Inventor parameter, specifying an Inventor.Parameter object directly.
Public propertyLogControl
Gets an object that provides control over the iLogic log (i.e. the rule logger).
Public propertyParamMultiValues
Gets or sets the multivalue list of an Inventor parameter, as an array of strings.
Public propertyParams
Gets a list of the Text and True/False parameters in the document.
Public propertyParamValue
Gets the value of an Inventor parameter.
Public propertyParamValueDirect
Gets the value of a Text or True/False parameter.
Public propertyParamValueInComponent
Gets the value of an Inventor parameter in a component or referenced document.
Public propertyRuleExceptionsLog
Gets an object which may contain a log of rule exceptions. In a desktop Inventor session, this will usually be empty. Exception messages will be shown interactively and not logged.
Public propertyRules
Gets a list of the rules in a document.
Public propertyRulesEnabled
Gets or sets a value that indicates whether or not rules will run automatically on parameter changes or other events. Set this to False to disable rules from running in response to parameter changes or other events. Set this to True to re-enable rule running. This will also clear any rule errors that may have disabled rules from running.
Public propertyRulesOnEventsEnabled
Gets or sets a value that indicates whether rules-on-events (event triggers) are enabled or not. Set this to False if there may be rules that run on document Open or Close (or other events), and you know you don't want them to run when calling from automation.
Public propertySilentOperation
This is an iLogic-specific SilentOperation flag. Normally when rules are run (in full Inventor or Inventor OEM), if any exceptions occur they will be shown in message dialogs. Set this to True if you don't want error messages to be displayed. (This property will always be True in Inventor Server.)
Top
Methods
  NameDescription
Public methodAddRule
Adds a rule to an Inventor document. Also compiles and runs it.
Public methodDeleteAlliLogicObjects
Deletes all rules in a document.
Public methodDeleteAllRules
Deletes all rules in a document. In an assembly, this will also recursively delete all rules in all the referenced documents.
Public methodDeleteAllRulesInDocument
Deletes all rules in the specified document only.
Public methodDeleteRule
Deletes a rule in an Inventor document.
Public methodEnterDelayedRuleRunningMode
Puts iLogic into a delayed rule-running mode. In this mode, rules that are triggered by parameter changes and other events will not be run until you call ExitDelayedRuleRunningMode.
Public methodExitDelayedRuleRunningMode
Exit delayed rule-running mode. Run all rules that were triggered by parameter changes or other events while in delayed rule-running mode (unless the parameter RunRules is False). Rules within each document will be run in the order in which they are found in the document.
Public methodGetNamedEntities
Gets the named entities in a document.
Public methodGetParam
Gets an iLogic parameter (implementing the iLogicParameter interface) by name.
Public methodGetRule
Gets a rule in a document.
Public methodMultiValueSetValueOptions
Controls what the behavior of iLogic will be when you assign a multivalue list to a parameter.
Public methodParametersXmlLoad
Imports Inventor parameters from an XML file to a document.
Public methodParametersXmlSave
Exports Inventor parameters from a document to an XML file.
Public methodRunExternalRule
Runs an external rule.
Public methodRunExternalRuleWithArguments
Runs an external rule, also passing arguments to the rule.
Public methodRunRule
Runs a rule in a document.
Public methodRunRuleDirect
Runs a rule, by specifying the rule object.
Public methodRunRuleDirectWithArguments
Runs a rule, by specifying the rule object, also passing arguments to the rule.
Public methodRunRuleWithArguments
Runs a rule, also passing arguments to the rule.
Top
See Also