Class ApplicationShim
A simple set of static methods to access the Inventor Application.
Inheritance
System.Object
ApplicationShim
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: InventorShims
Assembly: InventorShims.dll
Syntax
public static class ApplicationShim
Methods
| Improve this Doc View SourceCurrentInstance()
Gets a current Inventor.Application instance. This will not create a new instance if one cannot be found. VB.net/iLogic example:
Dim oApp As Application = ApplicationShim.CurrentInstance()
Declaration
public static Application CurrentInstance()
Returns
Type | Description |
---|---|
Inventor.Application | Inventor.Application |
Remarks
C# example:
Application app = ApplicationShim.CurrentInstance()
Instance()
Gets an existing Inventor.Application instance, and creates a new instance if one cannot be retrieved. VB.net/iLogic example:
Dim oApp As Application = ApplicationShim.Instance()
Declaration
public static Application Instance()
Returns
Type | Description |
---|---|
Inventor.Application | Inventor.Application |
Remarks
C# example:
Application app = ApplicationShim.Instance()
NewInstance(Boolean)
Creates a new Inventor Application instance.
Declaration
public static Application NewInstance(bool visibility = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | visibility | An optional boolean value indicates the visibility of the new Inventor instance: true = visible. |
Returns
Type | Description |
---|---|
Inventor.Application | Inventor.Application |
Remarks
C# example:
Application app = ApplicationShim.NewInstance()