2016-04-28 12 views
0

我解析在門的要求模塊和我想的outlinked要求,所以我這樣做:顯示確切要求標識

Stream outfile= write("D:\\Users\\iiii\\" reportName ".txt") 
outfile << "Spec Report Requirement IDs\n-----------------------------\n" 
Object o 
Module m = read(planSpecReportPath_inDoors) 
Link outLink 
ModName_ parentModName 
for o in m do 
{ 
    for outLink in o -> "*" do 
    { 
     parentModName = target(outLink) 
     string h = fullName(parentModName) "\n\n" 
     outfile << h 

    } 
} 

但是我只得到鏈接的需求文件路徑,並能夠沒有確切的需求ID。

我的問題是,如果我想要所有的特定需求模塊的需求ID不僅僅是需求文檔路徑,我該怎麼做,有什麼幫助?

回答

1

您將需要燙髮

int targetAbsNo (Link) 

所以,在你的例子類似

parentModName = target(outLink) 
int iTarget = targetAbsNo(outLink) 
string h = fullName(parentModName) " (" iTarget ")" "\n\n" 
+0

它的工作!非常感謝,但是你知道我能在pdf旁邊獲得這樣的門DXL信息嗎? –

+0

在互聯網上存在燙髮清單,例如在https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014580797 – Mike