/* DOORS DXL – Access Link sources
*/
Here is an example of how to access link sources in a DOORS module using DOORS DXL.
Module m
Object sourceObject, targetObject
Link myLink
LinkRef myLinkReference
string sourceModuleName = null
for targetObject in current Module do {
// loop for opening source modules
for myLinkReference in targetObject <- "*" do {
sourceModuleName = fullName(source(myLinkReference))
if (! open(module(sourceModuleName))) {
m = read(sourceModuleName, false)
}
}
// loop for accessing source objects
for myLink in targetObject <- "*" do {
sourceObject = source(myLink)
print identifier(targetObject) " <- " identifier(sourceObject) "\t:"
}
}
DOORS DXL Scripting Examples – Access Link Sources
This post was published by Admin.
Email: admin@TheCloudStrap.Com
