Provides functions to add, modify, and delete patterns of component occurrences.
In a rule, this interface is implemented by the predefined object named Patterns (which is the same object as ThisAssembly.Patterns).
Namespace: Autodesk.iLogic.Interfaces
Assembly: Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 30.0
Syntax
VB
Public Interface IManagedPatterns
C#
public interface IManagedPatterns
The IManagedPatterns type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() | Item |
Gets an occurrence pattern with the given name.
|
Methods
Name | Description | |
---|---|---|
![]() | AddCircular |
Adds or modifies a circular pattern in an assembly.
|
![]() | AddFeatureBased |
Adds or modifies a feature-based pattern in an assembly.
|
![]() | AddRectangular |
Adds or modifies a rectangular pattern in an assembly.
|
![]() | Delete |
Deletes an occurrence pattern from an assembly.
|
Remarks
Patterns can be managed using BeginManage(String) and EndManage(String).
If you use Capture Current State to create code to add a pattern, it's best to rename the pattern beforehand. If you keep the default name, your rules may not work on a system that is using a different language pack.