NX Open C++ Reference Guide
|
This class is responsible for Teamcenter file management related activities. More...
Public Member Functions | |
std::vector< int > | ExportFiles (std::vector< NXString > &itemIds, std::vector< NXString > &itemRevisionIds, std::vector< NXString > &datasetNames, std::vector< NXString > &datasetTypeNames, std::vector< NXString > &datasetRelationTypeNames, std::vector< NXString > &baseDirectoryNames, std::vector< NXString > &toolNames, std::vector< NXString > &exportDirectoryNames) |
Exports all exportable files for the specified dataset(s) to a directory. | |
std::vector< int > | ImportFiles (std::vector< NXString > &itemIds, std::vector< NXString > &itemRevisionIds, std::vector< NXString > &datasetNames, std::vector< NXString > &datasetTypeNames, std::vector< NXString > &datasetRelationTypeNames, std::vector< NXString > &importDirectoryNames) |
Imports all associated files for the specified dataset(s) into the Teamcenter database. | |
virtual | ~FileManagement () |
Frees the object from memory. |
This class is responsible for Teamcenter file management related activities.
Use PDM::PdmSession::NewFileManagement to get the instance of this class.
Created in NX6.0.3.
virtual NXOpen::PDM::FileManagement::~FileManagement | ( | ) | [virtual] |
Frees the object from memory.
After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.
Created in NX6.0.3.
License requirements : None
std::vector<int> NXOpen::PDM::FileManagement::ExportFiles | ( | std::vector< NXString > & | itemIds, |
std::vector< NXString > & | itemRevisionIds, | ||
std::vector< NXString > & | datasetNames, | ||
std::vector< NXString > & | datasetTypeNames, | ||
std::vector< NXString > & | datasetRelationTypeNames, | ||
std::vector< NXString > & | baseDirectoryNames, | ||
std::vector< NXString > & | toolNames, | ||
std::vector< NXString > & | exportDirectoryNames | ||
) |
Exports all exportable files for the specified dataset(s) to a directory.
The dataset(s) are identified by their Teamcenter item id, Teamcenter item revision id, Teamcenter dataset name, NX dataset type, and NX dataset relation type. A base export directory name must be specified for each dataset along with the tool name that is requesting the export. The full path to the exported files is returned in an output array. The full path will be NX_default_directory. Additionally, an array of PDI result codes is returned indicating the success (0) or failure (non-zero) of each export.
itemIds | Teamcenter item ids. NOTE: The full Unicode character set is not supported for this parameter. |
itemRevisionIds | Teamcenter item revision ids. NOTE: The full Unicode character set is not supported for this parameter. |
datasetNames | Teamcenter dataset names. NOTE: The full Unicode character set is not supported for this parameter. |
datasetTypeNames | NX dataset type names. NOTE: The full Unicode character set is not supported for this parameter. |
datasetRelationTypeNames | NX dataset relation type names. NOTE: The full Unicode character set is not supported for this parameter. |
baseDirectoryNames | Base export directory name. NOTE: The full Unicode character set is not supported for this parameter. |
toolNames | Tool names ("UGII V10-ALL"). NOTE: The full Unicode character set is not supported for this parameter. |
exportDirectoryNames | Resulting location of export directory |
std::vector<int> NXOpen::PDM::FileManagement::ImportFiles | ( | std::vector< NXString > & | itemIds, |
std::vector< NXString > & | itemRevisionIds, | ||
std::vector< NXString > & | datasetNames, | ||
std::vector< NXString > & | datasetTypeNames, | ||
std::vector< NXString > & | datasetRelationTypeNames, | ||
std::vector< NXString > & | importDirectoryNames | ||
) |
Imports all associated files for the specified dataset(s) into the Teamcenter database.
The files will be attached to the dataset(s) as named references. The dataset(s) are identified by their Teamcenter item id, Teamcenter item revision id, Teamcenter dataset name, NX dataset type, and NX dataset relation type. An import directory containing the files must be specified for each dataset. An array of PDI result codes is returned indicating the success (0) or failure (non-zero) of each import.
itemIds | Teamcenter item ids. NOTE: The full Unicode character set is not supported for this parameter. |
itemRevisionIds | Teamcenter item revision ids. NOTE: The full Unicode character set is not supported for this parameter. |
datasetNames | Teamcenter dataset names. NOTE: The full Unicode character set is not supported for this parameter. |
datasetTypeNames | NX dataset type names. NOTE: The full Unicode character set is not supported for this parameter. |
datasetRelationTypeNames | NX dataset relation type names. NOTE: The full Unicode character set is not supported for this parameter. |
importDirectoryNames | Import directories which contain the files to import. NOTE: The full Unicode character set is not supported for this parameter. |