我必须链接两个模块: 例如:我在模块'A'中有一些信息,模块'B'中的信息类似于模块'A',模块'C'具有相同的信息。现在,链接存在于'A'到'B'和'B'到'C'之间。目标是将'C'链接到'A'。
答案 0 :(得分:1)
创建一个指向驻留在不同模块中的DOORS对象的链接与创建相同模块对象的链接没有区别。您只需从模块中检索对象句柄。
考虑一下:
Object sourceObj = ... // you already have this object handle
Object targetObj = null
const string targetModuleName = "/my/DOORS/module"
// open the module
Module mod = edit(targetModuleName, true, false)
if (null(mod)) ack("Error!")
// now it depends on how you can identify your target object
for targetObj in mod do {
// example: if the object identifier matches ...
if (... == identifier(targetObj)) {
sourceObj -> targetObj
break
}
}
此外,请查看史蒂夫解释此场景的this question。