Creating links in DOORS using DXL

偶尔善良 提交于 2019-12-11 09:48:20

问题


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.


回答1:


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

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

Object src the source object

Object tgt the Target object

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.

Hope this helps.

---EDIT---

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



来源:https://stackoverflow.com/questions/25642254/creating-links-in-doors-using-dxl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!