0
저는 DOORS와 DXL을 처음 접했습니다. 나는 프로젝트 템플릿의 모듈을 DXL을 사용하여 주어진 프로젝트 폴더에 복사하려고 시도했지만 접근 방식이 작동하지 않았습니다. 나는 DOORS '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()
, 나는 기능 clipCopy()와 clipPaste는()이 나타내는 오류를 얻을 : 여기에 복사 및 붙여 넣기 작업을 시도하는 내 스크립트의 일부입니다 잘못된 인수. DXL 참조 설명서에서 인수 유형이 항목 유형이어야 함을 나타내지 만 완전히 이해할 수는 없습니다.
은 나뿐만 아니라이 다른 접근 방식을 시도했다 :
// 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()와 같은 오류를 얻을 : 복사() 및 이동().
내가 뭘 잘못하고 있는지 정확히 알지 못하는 사람이 있습니까?
미리 감사드립니다.