Application Object
To use CST STUDIO SUITE's OLE automation server functionality, access the application by the CreateObject VBA command. Then, create a new project or open or an existing one, respectively.
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.
CalculatePassivityMeasure( string S-ParameterContainerPath )
Calculates a Passivity Measure of S-Parameter data from the Navigation Tree and inserts it into the navigation tree. S-Parameters are passive, if the matrix [I]-[S]*Transjugate{[S]} is semi-positive definite. Here, [I] is the unity matrix and [S] is the S-Matrix. The calculated passivity measure is the minimum eigenvalue of [I]-[S]*Transjugate{[S]} as a function of frequency. S-Parameters are non-passive, if the passivity measure is negative. S-ParameterContainerPath is the path of the S-Parameter container in the navigation tree, for which the passivity measure is to be calculated, e.g., "Tasks\SPara1\S-Parameters" for the results of a default S-Parameter task.
Quit
Exits the application.
Example
Dim app As Object
Set app = CreateObject("CSTStudio.Application")
Dim design As Object
Set design = app.OpenFile ("D:\CST DESIGN STUDIO EXAMPLES\Amplifier.cst")