私はDOORSとDXLの両方が新しいです。私は、プロジェクトテンプレートのモジュールをDXLを使って任意のプロジェクトフォルダにコピーしようとしていましたが、私のアプローチは機能していませんでした。ここではコピー&ペースト操作を試みている私のスクリプトの一部です:DXLを使用してフォルダ/プロジェクト間でDOORSモジュールをコピーするにはどうすればよいですか?
// Where string originalModule is the path to the module being copied.
// Where string targetPath is the path to where the copied module should be pasted.
ModName_ originalMMP = module(originalModule)
string originalMMPdesc = description(originalMMP)
clipCopy(originalMMP)
clipPaste(targetPath)
clipClear()
私はDOORS」DXLエディタで私のスクリプトを実行するたびに、私は機能clipCopy()とclipPaste()が持っていることを示すエラーを取得します無効な引数。 DXLリファレンスマニュアルでは、引数の型がItem型であるべきであることを示していますが、私はそれを理解しているとは必ずしも言えません。
私もこの他のアプローチを試してみました:
// The same conventions as above are used for the originalModule and targetPath
// string type variables.
// The variable string targetPathTemp contains the path to the replicated
// file New Module Temp
ModName_ originalMMP = module(originalModule)
string originalMMPdesc = description(originalMMP)
bool OK = copy(originalMMP,"New Module Temp", originalMMPdesc)
ModName_ newMMP = module(targetPathTemp)
// Moving and Renaming:
ErrMess = move(newMMP, targetPath)
ErrMess = rename(copiedMMP,newModuleName, originalMMPdesc)
私は機能のためにclipCopy()とclipPaste()と同じエラーを取得:コピーを()と(移動します)。
私は何が間違っているのか分かりませんが、正確に何を理解していないのですか?
ありがとうございます!