|
Hi Christian
I've attached a sample.
Highlighting elements:
Use the method of highLightElement() of IRPApplication
Message Box:
Use the Win32 API directly (win32ui.MessageBox)
Rhapsody's Log-window:
Use the method writeToOutputWindow() of IRPApplication. (If you are, unlike me, able to use Rhapsody >7.0)
Btw: I don't know the state in 7.5, but up to 7.3, writeToOutputWindow() is a undocumented Feature. It expects 2 strings as arguments. The first naming the specific output window ("Log", "Build", "Configuration Management" ...) and the second is the text you'd like to write.
Btw2: There are some more features not documented in the API help. So have a look in your <PyhtonInstallDir>\Lib\site-packages\win32com\gen_py. There you will find the a file named 47DBF9D5-F318-11D2-B825-00104B3E6572x0x1x0.py containing all interfaces from the Rhapsody API. And, as this file is generated from the typelib, its the most up to date ressource on the Rhapsody API.
Have Fun!
Christian
| Attachments: |
File comment: Example of giving user feedback from a python-RhapsodyAPI-script.
Seeks a class named 'MyClass' in the current project and, if successful, high lights it. If the class can't be found, some output is written to the log window and a message box is displaye
RhapsodyAPIDemo2.zip [597 Bytes]
Downloaded 12 times
|
_________________ "I love deadlines. I like the whooshing
sound they make as they fly by." - Douglas Adams
|