Show / Hide Table of Contents

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 Source

CurrentInstance()

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()

| Improve this Doc View Source

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()

| Improve this Doc View Source

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()

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX