Page tree

Versions Compared

Key

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

...

Code Block
languagepy
# Simple script to test interface to AWRDE
 
import win32com.client
from 
awrde = win32com.client import constants as awrc  .Dispatch('MWOApp.MWOffice')  # connect to AWRDE, load AWRDE types
 
# create anshorthand aliasvariable forto theaccess AWRAWRDE API constants
awrc = win32com.client.constants
 
# test that type library is loaded
assert awrc.mwEMS_AwrAxiem64 == 2
 
awrde = win32com.client.Dispatch('MWOApp.MWOffice')  # connect to AWRDE
 
for model in awrde.Models:
	print(model.Name)

...