Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Yes, Active State Perl , the standard implementation for windows, includes a module called Win32::OLE which allows Perl scripts to interact with COM components. Using this module you can create an instance of the AWR Design Environment and program the API objects exposed by that instance.


The Active State web site also includes a FAQ on using OLE with Perl. The FAQ includes a number of examples of using Perl to control Microsoft Office Applications. Using Perl to interact with both would enable the creation of interesting applications like an automated design review package generator or using Excel to chart data extracted from simulations in Microwave Office.


' VBScript to create MWOffice application object, add a schematic and elements.

Dim objMWO
Dim schem
Dim elem1, elem2

' Create the MWOffice Application object. (Starts the exe)

Set objMWO = CreateObject("AWR.MWOffice")

' Make sure the project is new.


' Add a schematic named "MySchematic"

Set schem = objMWO.Project.Schematics.Add("MySchematic")

' Add some elements.
Set elem1 = schem.Elements.Add("MLIN", 0, 0)
Set elem2 = schem.Elements.Add("MLIN", 0, 0, 180)

MsgBox("Element Count = " & schem.Elements.Count)