开发者

PowerDesigner - vbs script to run other scripts

开发者 https://www.devze.com 2023-04-08 03:42 出处:网络
I have a few PowerDesigner 15 vbs scripts that perform various cleansing/transformation taskson physical data models.

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消