Date: Thu, 28 Mar 2024 17:53:16 +0000 (GMT) Message-ID: <1824585001.1.1711648396642@[172.30.0.157]> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_0_876724511.1711648396611" ------=_Part_0_876724511.1711648396611 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
There are times when more information is needed in the type library in o= rder to be able to set some objects in the AWRDE. One such case is setting = UserSettings.
In Visual Basic, user settings would be set in this way
Ap= plication.UserSetting("groupname", "entryname") =3D "value"
but in Python this will produce the following error
"SyntaxError: can't assign to function call"
The solution to this problem is to use makepy.py to create full Python s= upport for the AWRDE. This command will be found in the lib\site-packages\w= in32com\client folder of your Python installation and is run by double-clic= king on the command. It will open a window asking you to 'Select Library'.<= /p>
Select the 'AWR Design Environment' version you are using and press "OK"= . This will create the type library information for the AWRDE.
Once this is done you will have additional functions available when you = create AWRDE COM objects.
Now, we can set properties in the AWRDE using the Set methods provided b= y the makepy.py command which are loaded automatically when we call Dispatc= h. At this point we would set a user setting with this:
aw= rde_com_object.SetUserSetting("groupname", "entryname", "value")