在 DXL - DOORS 中创建文件夹
我正在尝试制作一个脚本,将一个项目的内容复制到 DXL 中的另一个项目(即文件夹和模块)。为此,我看到有一个创建函数,
create(string name, string description)
它创建一个文件夹...但从我所见,它在我运行脚本的当前目录中创建它。
有什么方法可以从 P 项目的 C 文件夹中运行 M 模块中的脚本,生成一个带有 >同名 C 但在新 NP 项目内?
谢谢:)
I am trying to make a script that will copy the contents of one project to another (ie folders and modules) in DXL. To do it, I have seen that there is the create function,
create(string name, string description)
which creates a folder... But from what I see, it creates it in the current directory where I run the script.
Is there any way that running the script in the M module, from the C folder of the P project, generates a folder with the same name C but inside the new NP project?
Thanks:)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 DXL 手册:
名称参数可以是绝对名称或相对名称,并且可以包含路径。
。因此,您可能有一个类似的循环此外,根据您的需要,您可能想看看
clipCopy
和clipPaste
,它们复制整个层次结构。from the DXL manual:
The name argument can be an absolute or relative name, and may include the path.
. So, you might have a loop likeAlso, depending on your needs, you might want to have a look at
clipCopy
andclipPaste
, which duplicates an entire hierarchy.