VBA Application Object

CST STUDIO SUITE is implemented as an OLE automation server.  The application is registered under "CSTStudio.Application".  An instance can be created through the common VBA CreateObject command:

Dim app As Object

Set app = CreateObject ("CSTStudio.Application")

 

This application object provides methods to open, create and close projects.  Refer to the following list for details.

Methods

 

NewMWS Project

Creates a new CST MICROWAVE STUDIO project.

 

NewEMS Project

Creates a new CST EM STUDIO project.

 

NewPS Project

Creates a new CST PARTICLE STUDIO project.

 

NewMPS Project

Creates a new CST MPHYSICS STUDIO project.

 

NewCS Project

Creates a new CST CABLE STUDIO project.

 

NewPCBS Project

Creates a new CST PCB STUDIO project.

 

NewDS Project

Creates a new CST DESIGN STUDIO project.

 

OpenFile ( filename filename ) Project

Opens a project .

 

Active3D

Offers access to the currently active CST MICROWAVE STUDIO, CST EM STUDIO, CST PARTICLE STUDIO, CST MPHYSICS STUDIO or CST CABLE STUDIO project.

 

ActiveDS

Offers access to the currently active CST DESIGN STUDIO project.

 

Quit

Exits the application.

 

Example:

 

Dim app As Object

Set app = CreateObject ("CSTStudio.Application")

 

Dim mws As Object

Set mws = app.OpenFile ("D:\CST MICROWAVE STUDIO EXAMPLES\Amplifier.cst")