PowerDesigner - 用于运行其他脚本的vbs脚本
我有一些 PowerDesigner 15 vbs 脚本,可以对物理数据模型执行各种清理/转换任务。
我希望能够同时运行所有脚本,而不是一次运行一个(现在有 10 个脚本,将来可能会更多)。
另外,我想避免将所有代码复制到一个丑陋的大脚本中。
有没有办法让一个脚本运行所有其他脚本?
注意:我尝试过 ExecuteCommand,但它不起作用;它在 PowerDesigner 上下文之外执行 .vbs,因此无法访问模型。
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 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将脚本存储在扩展名 (.xem) 中。
主脚本会将扩展附加到模型,使用脚本(例如模型对象上的自定义方法),并在最后分离扩展?
或者您甚至可以始终将扩展附加到您的模型(这将允许将清理脚本定义为弹出菜单选项)。
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).