Retrieving Symbol Definitions
Methods Introduced:
Creo Parametric symbols exist in two different areas: the user-defined area and the system symbols area.
The method
pfcDetailItemOwner.RetrieveSymbolDefItem() retrieves a symbol definition from the user-defined location designated by the configuration option
pro_symbol_dir. The symbol definition should have been previously saved to a file using
Creo Parametric.
The method
pfcDetailItemOwner.RetrieveSymbolDefItem() also retrieves a symbol definition from the system directory. The system area contains symbols provided by
Creo Parametric with the Detail module (such as the Welding Symbols Library).
The input parameters of this method are:
• FileName—Name of the symbol definition file.
• Source—Source of the symbol definition file. The input parameter Source is defined by the enumerated type pfcDetail.DetailSymbolDefItemSource. The valid values which are supported are listed below:
◦ DTLSYMDEF_SRC_SYSTEM—Specifies the system symbol definition directory.
◦ DTLSYMDEF_SRC_PATH—Specifies the absolute path to a directory containing the symbol definition.
• FilePath—Path to the symbol definition file. It is relative to the path specified by the option pro_symbol_dir in the configuration file. A null value indicates that the function should search the current directory.
• Version—Numerical version of the symbol definition file. A null value retrieves the latest version.
• UpdateUnconditionally—True if Creo should update existing instances of this symbol definition, or false to quit the operation if the definition exists in the model.
The method returns the retrieved symbol definition.