使用DXL在DOORS中创建链接 [英] Creating links in DOORS using DXL

查看:403
本文介绍了使用DXL在DOORS中创建链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用DOORS 8.3,我想创建链接DXL.有人可以帮助我编写代码吗?我试图使用DXL在模块中找到链接的存在,并且它可以正常工作.但是我不知道使用DXL创建链接的命令.

I am using DOORS 8.3 and i want to create links DXL Can any one help me with the code. I have tried to find the presence of links in the module using DXL and it works properly. However I don't know the command to create links using DXL.

推荐答案

要在DXL中创建链接,您需要3条信息:

To create a link in DXL you need 3 pieces of information:

string linkMod = /Project/Folder/LinkModuleName完整的Link模块路径.

string linkMod = /Project/Folder/LinkModuleName The full Link module path.

Object src源对象

Object tgt目标对象

创建链接时,您必须具有对Source对象的编辑权限.在为上面的变量分配了正确的对象和完整的链接模块路径之后,可以使用以下操作创建链接:

You must have edit access to the Source object when you create the link. After you assign the variables above with the correct objects and the full link module path, you can use the operation below to create the link:

src -> linkMod -> tgt

这将使用指定的链接模块创建从源到目标的链接.

That will create a link from the source to the target, using the link module specified.

希望这会有所帮助.

-编辑---

如果您的对象位于单独的模块中,则需要打开每个对象以获得正确的对象句柄.

If your objects are in separate modules, you will need to open each of them to get the correct object handles.

Module smod = read("/PROJECT/FOLDER/SOURCE_MODULE") // Full path to source module
Object src = object(123)                            // Absolute number for source object in source module

Module tmod = read("/PROJECT/FOLDER/TARGET_MODULE") // Full path to target module
Object tgt = object(456)                            // Absolute number for target object in target module

然后以相同的方式创建链接:

Then the link is made the same way:

src-> linkMod-> tgt

src -> linkMod -> tgt

这篇关于使用DXL在DOORS中创建链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆