企业架构师 select 项对话框

Enterprise architect select item dialog

我们正在使用 API

elementid=Repository.InvokeConstructPicker("IncludedTypes=Class;StereoType=foo")

打开 select<<Item>> 对话框,用户一次只能 select 一个项目。

  1. 有什么方法可以让用户在 select<<Item>> 对话框中一次 select 多个项目。

  2. select<<item>> 对话框默认打开时,对话框中的某些元素应该 selected。

  3. 如何检查 none 是否被 select 或在对话框中单击取消按钮。

只需阅读文档即可。广告 1:

val = Repository.InvokeConstructPicker("IncludedTypes=Class;MultiSelect=True;");

广告 2:

  • Selection (optional) - list of comma-separated element GUID's that will be selected by default
val = Repository.InvokeConstructPicker("IncludedTypes=Class;Selection={CD97B45C-1A97-4049-BB2E-97EE5951AB20};");

不过我还没有测试过。