This interface requires the installation of CATIA - PPR xPDM Gateway 1 Product (PX1) or the installation of the CATIA-SmarTeam plugin. In case one of these products is not granted, the first invocation to one of CATIASendToService methods will fail.
Methods
- Sub AddFile( iPath)
-
Adds a file to the list of the files 'to be copied'.
This method verifies that the given input file is valid (exists and is not a directory),
it recursively adds pointed files.
- Parameters:
-
- iPath
- : The path of the file to be added to the list of the 'to be copied' files.
- Example:
- Send.AddFile(iPath)
- Parameters:
-
- oErrorParam
- A parameter string given together with the error code. dd>
- oErrorCode
- The last executed method error code:
dd>code diagnosis oErrorParam value 0 action successfully performed :-) 1 PX1 license not granted 2 internal error 5 file already in the list file name 6 file is not in the list file name 7 empty file list 8 missing target directory 9 no common root directory 10 file does not exist file name 11 input is a directory directory name 12 directory check failed directory name 13 invalid file name given name 14 file has no read permission given name 36 allocation failed :-(
- Parameters:
-
- oDependant
- : The table of dependant files.
- Example:
- Send.GetListOfDependantFile(oDependant)
- Parameters:
-
- oWillBeCopied
- : The table of the files that will be copied.
- Example:
- Send.GetListOfToBeCopiedFiles(oWillBeCopied)
- Parameters:
-
- iKeep
- =1: to preserve the relative tree structure of the files.
This option will be effective only if there is a common root directory for all files. dd> - iKeep
- =0: to copy the files directly in the destination directory
- Example:
- Send.KeepDirectory(ikeep) dd>
- Parameters:
-
- iFile
- : The File (With extension) to be removed from the list of the 'to be copied' files.
- Example:
- Send.RemoveFile(iFile)
A "report.txt" report file is generated in the specified destination directory.
- Parameters:
-
- iDirectory
- : The destination directory where the files will be copied.
- Example:
- Send.SetDirectoryFile(iDirectory)
- Parameters:
-
- iFile
- : The name (Name With extension) of the given file. dd>
- iDirectory
- : The directory where this file will be copied.
- Example:
- Send.SetDirectoryOneFile(iFile, iDirectory)
It generates a complete list of the recursively dependent files to be copied.
- Parameters:
-
- iPath
- : Full path of the file to be copied.
Send.SetInitialFile(iPath)
- Parameters:
-
- iOldname
- : The old file name (With extension). dd>
- iNewName
- : The new file name (Without extension).
- Example:
- Send.SetRenameFile(iOldname, iNewName)