在 DXL - DOORS 中创建文件夹

Create a folder in DXL - DOORS

我正在尝试制作一个脚本,将一个项目的内容复制到 DXL 中的另一个项目(即文件夹和模块)。要做到这一点,我看到有创建功能,

create(string name, string description)

它创建了一个文件夹...但是据我所知,它是在我 运行 脚本所在的当前目录中创建的。

有没有什么方法可以从 C 文件夹中 M 模块中 运行ning 脚本=19=]P 项目,生成一个 同名文件夹 C 但在 new NP 项目?

谢谢:)

来自 DXL 手册:The name argument can be an absolute or relative name, and may include the path.。所以,你可能有一个像

这样的循环
Project P = project ('/P')
Item i
for i in P do {
   if (type i == 'Folder') {
      string nName = name i
      create ("/NP/" sName, "")
   }
   // recursively copy the content of the folder
}

此外,根据您的需要,您可能想看看 clipCopyclipPaste,它们复制了整个层次结构。