Inventor 2026
Drawing View GetIntentOrDefault
There are new GetIntentOrDefault(String, PointIntentEnum, CurveChoiceSpec) and GetIntentOrDefault(ComponentArgument, String, PointIntentEnum, CurveChoiceSpec) functions. These are very similar to the GetIntent functions. The only difference is that the new ones will not throw an exception if they can't find the required drawing or model geometry. Instead, they will return Nothing.
Inventor 2025
Vault Check-In Event
There a new event in the Event Triggers dialog: Before Vault Check-In. It provides a way to run rules on a file during the Vault check-in command, but before the file is actually sent to Vault. These rules can cancel a check-in. If more than one file is being checked in with a single command, canceling a single file will cancel all of them.
For sample code, open the rule editor and see the new "Before Check-in event" snippet in the Vault category. The new object to support this is the VaultCheckIn property on RuleArguments. It is of the type IVaultCheckinArguments.
Model States Scope
This provides a way to switch between the two model state editing scopes: kEditActiveMember and kEditAllMembers. kEditAllMembers corresponds to "Factory Scope" in the UI.
This is implemented as a new MemberEditScope property on several objects including:
iLogicVb (ILowLevelSupport)
Parameter (IParamDynamic)
Component (ICadComponent)
When one of these properties is set, the setting can persist beyond a single rule. It remains in effect for subsequent rules that were triggered by the same event or parameter change, or that were explicitly run (with a RunRule or RunExternalRule statement). iLogic will automatically apply it to the required assembly or part documents, by setting the ModelStates.MemberEditScope property. When the rule or rules have finished running, iLogic will restore the original value of this property on the documents.
The setting on iLogicVb also applies to the other objects. It can be overridden on each of the individual objects.
RuleFullFileName
This is a new property on the iLogicVb object: RuleFullFileName. It is useful for external rules.
Inventor 2024
iLogic Vault
The iLogicVault object (iLogicVaultClass) was added. It provides functions to find, download, and check out files from Vault. It also has a function to add files (with limitations), and another function to update properties. It is based on the iLogic-Vault project.
It cannot be used on Vault Basic.
Inventor 2023
Precise Extents
The Measure object (ICadMeasure interface) has three new properties : PreciseExtentsLength, PreciseExtentsWidth, and PreciseExtentsHeight.
These return tight extents measurements for curved geometry and for parts that are rotated within assemblies. Internally, they use the new API property PreciseRangeBox on the PartComponentDefinition and AssemblyComponentDefinition objects. This returns a minimum bounding box that is aligned to the world axes.
Line Number of an Error
The ExceptionLogEntry interface has a new LineNumber property. When a rule throws an exception, this returns the line number on which it was thrown.
Inventor 2022
Model States
The ThisDoc object (ICadDoc interface) has two new properties : ActiveModelState and FactoryDocument.
The Component object (ICadComponent interface) has a new ActiveModelState property.
The Components object (IManagedComponents interface) has a new AddWithModelState function. This will add a component with a specified model state to the assembly.
Instance Properties
The iProperties object (IiProperties interface) has two new properties : InstanceValue and InstanceExpression. These can be used to get and set iProperties that are on a component instance itself rather than on the underlying document.
Inventor 2021
Drawings
The ThisDrawing object now implements the new IManagedDrawing interface (which inherits from the older ICadDrawing interface). ThisDrawing now supports managed drawing objects: dimensions and annotations.
The way these are managed is similar to the assembly components and constraints on ThisAssembly. All objects have names. Add* functions will either add an object or edit an existing object. To get fully managed behavior, ThisDrawing.BeginManage and ThisDrawing.EndManage must be used.
Managed drawing functions are available on properties nested under the ThisDrawing object. The object hierarchy is similar the Inventor API. Similar to a DrawingDocument in the API, ThisDrawing contains a Sheets collection. Each sheet contains a DrawingViews collection.
Standard objects provider
The Create function on the StandardObjectFactory class returns an object that is tied to a document and provides standard iLogic objects (e.g. Parameter, iProperties) as properties. This can be used to call iLogic functions on a document other than the document the rule is running in. For instance, in an assembly it can be used to operate on component parts.
Inventor 2019
Assemblies
The ThisAssembly object (IManagedAssembly interface) provides functions to add, modify, and delete assembly components, patterns, and constraints.
These provide more control and flexibility than the older suppress/unsuppress method.
Specific assembly functions are available directly on three new objects:
[Name] | [Interface] |
Components | |
Constraints | |
Patterns |
Other
The RuleName property on the iLogicVb object provides the name of the current rule.