如何授予独占编辑权限? [英] How to give Exclusive edit permissions?

查看:110
本文介绍了如何授予独占编辑权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天前,我在dxl中开发了一个脚本,为项目文件夹中的每个模块制作了第一个发行版"基准.但是,当我运行脚本时,会出现一条消息,提示我无权执行此操作.这是我的代码:

a few days ago i developed a script in dxl to make a "first release" Baseline for each module in a project folder. But when I run the script appears a message saying I have not permissions to do so. This is my code:

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()"行来处理它,但这不能完全解决问题,因为仅针对当前打开的模块创建了基线.你能帮我吗?预先感谢.

As you can see I included the line "setExclusive()" to deal with it, but this does not fix the problem completely since the baseline is created only for the current open Module. Could you help me in this? Thanks in advance.

推荐答案

似乎我在回答

Seems I omitted a step when answering Is it possible to create a baseline for each module in a Folder using a dxl script (DOORS)?. Sorry, I do not have a DOORS installation at my current computer.

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

The method how to open a module in exclusive mode is described in the DXL manual, section "Module manipulation". You will need the perm Module edit(string name [,bool disp[, bool silent[, bool loadStandardView]]]) (see the manual for a description of the parameters).

在此示例中为

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

这篇关于如何授予独占编辑权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆