如何赋予独家编辑权限?

时间:2016-09-13 15:49:22

标签: baseline ibm-doors

前几天我在dxl中开发了一个脚本来制作一个"第一个版本"项目文件夹中每个模块的基线。但是当我运行脚本时会出现一条消息,说我没有权限这样做。这是我的代码:

void CreateBaseline (Module mod) {                     // Function to create
    create (mod, nextMajor(), "First Release")         //    baseline
}
Folder fStart = folder "/Z_Training/Baselines"         // Folder
Module iCurrent                                        // Module handler

for iCurrent in fStart do{           
setExclusive()                                         // Set Exclusive edit
Module (iCurrent, true)                                //    rights
CreateBaseline(iCurrent)
}

正如你所看到的,我包括了一行" setExclusive()"处理它,但这不能完全解决问题,因为只为当前打开的模块创建基线。你能帮帮我吗?提前谢谢。

1 个答案:

答案 0 :(得分:2)

似乎我在回答Is it possible to create a baseline for each module in a Folder using a dxl script (DOORS)?时省略了一个步骤。对不起,我目前的电脑上没有安装DOORS。

DXL手册“模块操作”一节中介绍了如何以独占模式打开模块的方法。您将需要烫发Module edit(string name [,bool disp[, bool silent[, bool loadStandardView]]])(有关参数的说明,请参阅手册)。

在这个例子中,这将是

[…] do {
Module mod = edit (fullName iCurrent, false, true, true)
CreateBaseline(mod)