如何查找和导出DOORS ID值? [英] How to find and export the DOORS ID value?

查看:329
本文介绍了如何查找和导出DOORS ID值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了

I found a script to export to LaTeX, but at least with the module and DOORS installation at my company (DOORS9.6 via a remote server) , I get an error when trying to execute. The error occurs at the line

 // ------------------- Handle Requirements objects Text -----------
         puid = obj."IE PUID"

错误消息是

-R-E- DXL:未知对象属性(IE PUID)

-R-E- DXL: unknown Object attribute (IE PUID)

如果我注释掉那行,该脚本将运行并不会出现错误并导出LaTeX源文件.当然,问题是我需要每个对象的DOORS ID的文本,称为对象标识符".是否有获取信息的替代方法,或者可以使用其他属性名称? (我没有带有任何ID -namelists的参考文档.)

If I comment out that line, the script runs w/o error and exports a LaTeX source file. Problem is, of course, that I need the text of each Object's DOORS ID, known as "Object Identifier". Is there an alternative way to get the info, or is there a different attribute name I could use? (I don't have a reference doc. with any sort of id -namelists).

推荐答案

问题是,您需要导出哪个属性.

The question is, which attribute(s) you need to be exported.

您找到的脚本会将当前视图的所有对象和属性导出到Latex,但是已被脚本作者的需要采用,例如"IE PUID"不是标准的DOORS属性.因此,您必须进行一些更改,直到脚本提供所需的输出为止.

the script you found will export all objects and attributes of the current view to latex, but it is adopted to the needs of the script's author, e.g. "IE PUID" is not a standard DOORS attribute. Thus, you will have to make some changes until the script provides the output you need.

对于ID,解决DOORS对象的常用方法是使用属性绝对编号",该属性对于模块中的每个对象都是唯一的.您可能希望将此属性用作ID,但是模块中可能具有其他类型的ID-我建议打开要导出的模块,并查看一个对象的详细信息(属性)(鼠标右键) .查看属性时,应该找到哪个属性是最适合您的"ID".

As for the ID, the usual way to address DOORS objects is by using the attribute „Absolute Number", which is unique for each object in a module. You might want to use this attribute as ID, but perhaps you have a different kind of ID in your modules - I suggest to open the module that you want to export and look at the details (properties) of one object (right mouse button). When you look at the attributes, you should find which attribute is the best "ID" for you.

您可能需要更改的另一行是"if(!main(col)&& search(regexp(P | p)(U | u)(I | i)(D | d)") ,var_name,0)== false"".此行确保仅导出不包含字符puid或PUID的列,这可能是为了避免将ID打印两次.也可以根据您的需要采用它.

One other line you will probably need to change is "if( ! main( col ) && search( regexp "(P|p)(U|u)(I|i)(D|d)", var_name, 0 ) == false )". This line ensures that only columns are exported that do not contain the characters puid or PUID, probably for avoiding that the ID is printed twice. Adopt this to your need as well.

希望这会有所帮助

这篇关于如何查找和导出DOORS ID值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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