PowerDesigner - vbs script to run other scripts
I have a few PowerDesigner 15 vbs scripts that perform various cleansing/transformation tasks on physical data models.
I'd like to be able to run all of them开发者_如何学Python at once rather than one at a time (there are 10 scripts now, possibly more in the future).
Also, I'd like to avoid copying all the code in one big ugly script.
Is there a way to have a script that runs all other scripts?
Note: I've tried ExecuteCommand, but it doesn't work; it executes the .vbs outside the context of PowerDesigner, so it cannot access the Model.
You could store your scripts in an extension (.xem).
The main script would attach the extension to the model, use the scripts (as custom methods on the model object for example), and detach the extension at the end?
Or you could even always attach the extension to your model (which would allow defining the cleansing scripts as popup menu options).
精彩评论