Category Creo Parametric fundamentals, Object ProDirectory

Function ProDirectoryChange


Description
Changes Creo Parametric to another working directory. The directory can be relative or absolute.

You can use this function in conjuction with the file management functionality to save and retrieve objects.

Replacement in Object TOOLKIT: pfcBaseSession::ChangeDirectory
Synopsis
#include <ProUtil.h>
ProErrorProDirectoryChange(
ProPath path
/* (In)
The path to the new directory
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully changed the directory.
PRO_TK_BAD_INPUTSThe specified path is invalid.
PRO_TK_CANT_ACCESSYou are unable to access the specified directory.
PRO_TK_INVALID_NAMEYou specified an invalid name.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Utilities: Current Directory

Sample Code References:

  1. pt_examples ( TestAsm.c )
  2. pt_examples ( TestAsm.c )
  3. pt_examples ( TestDrwView.c )
  4. pt_examples ( TestDrwView.c )
  5. pt_examples ( TestMain.c )
  6. pt_examples ( TestMain.c )
  7. pt_examples ( TestCavityLayout.c )
  8. pt_examples ( TestCavityLayout.c )
  9. pt_userguide ( UgAsmcompConstraint.c )
  10. pt_userguide ( UgAsmcompConstraint.c )
  11. pt_userguide ( UgDrawingViews.c )
  12. pt_userguide ( UgDrawingViews.c )
  13. pt_userguide ( UgMaterial.c )
  14. pt_userguide ( UgMaterial.c )
  15. pt_userguide ( UgMaterial.c )