Class ExternalRuleDirectories
A class that allows for simpler manipulation of the iLogic Addin's list of External Rule Directories.
Inheritance
Implements
Inherited Members
Namespace: InventorShims
Assembly: InventorShims.dll
Syntax
public class ExternalRuleDirectories : IDisposable
Constructors
| Improve this Doc View SourceExternalRuleDirectories()
Constructor that creates an ExternalRuleDirectories object.
Declaration
public ExternalRuleDirectories()
ExternalRuleDirectories(Application)
Constructor that creates an ExternalRuleDirectories object.
Declaration
public ExternalRuleDirectories(Application local_app)
Parameters
Type | Name | Description |
---|---|---|
Inventor. |
local_app | Takes an Inventor.Application object. |
Properties
| Improve this Doc View SourceCount
Get the number of directories contained in ExternalRuleDirectories.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System. |
Directories
Access the iLogic External Rule Directories as a List of strings.
Declaration
public List<string> Directories { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceAdd(String)
Adds a directory to the iLogic Addin's list of External Rule Directories. Does not add the directory if it already exists in the list.
Declaration
public void Add(string directory)
Parameters
Type | Name | Description |
---|---|---|
System. |
directory | Directory to add |
Clear()
Clears all entries from the iLogic Addin's list of External Rule Directories.
Declaration
public void Clear()
Contains(String)
Determines whether a directory is in the iLogic Addin's list of External Rule Directories.
Declaration
public bool Contains(string directory)
Parameters
Type | Name | Description |
---|---|---|
System. |
directory |
Returns
Type | Description |
---|---|
System. |
Returns true if directory is found in the list. |
Dispose()
Manually dispose of the ExternalRuleDirectories object.
Declaration
public void Dispose()
Dispose(Boolean)
Dispose of the ExternalRuleDirectories object.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing |
Finalize()
Finalizer
Declaration
protected void Finalize()
Remove(String)
Removes a directory from the iLogic Addin's list of External Rule Directories.
Declaration
public void Remove(string directory)
Parameters
Type | Name | Description |
---|---|---|
System. |
directory | Directory to remove as a string. |