Creating links in DOORS using DXL

2019-08-09 08:55发布

问题:

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



标签: ibm-doors