Category Assembly, Object ProAssembly

Function ProAssemblySimprepMdlnameRetrieve


Description
Retrieves the specified simplified representation.

NOTE:

Operates on assemblies only, not parts.

If errors occur in regeneration, the assembly will include suppressed features. The function ProSolidRetrievalErrorsGet identifies if errors occurred. Note: In Creo 3 this function does not support names longer than 80 characters. It will return PRO_TK_BAD_INPUTS for longer names. The support for ProFamilyMdlName will be added in a future release.

Replacement in Object TOOLKIT: pfcBaseSession::RetrieveAssemSimpRep
wfcWSession::RetrieveAssemblySimpRep
Synopsis
#include <ProSimprep.h>
ProErrorProAssemblySimprepMdlnameRetrieve(
ProFamilyMdlName assem_name
/* (In)
The name of the assembly to retrieve
*/
ProMdlfileType file_type
/* (In)
the file type of the assembly to retrieve.
*/
ProName simp_rep_name
/* (In)
The name of the simplified representation. Can be NULL; the instructions in the data will be used to create a new representation on the fly.
*/
ProSimprepdata* simp_rep_data
/* (In)
The simplified representation data. Can be NULL.
*/
ProAssembly* p_assem
/* (Out)
The handle to the assembly
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_NO_PERMISSIONThe function does not have permission to operate on this assembly.
PRO_TK_E_NOT_FOUNDThe function did not find the simplified representation in the solid.
See Also
ProSolidRetrievalErrorsGet

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Assembly: Simplified Representations: Retrieving Simplified Representations
  3. Assembly: Simplified Representations: Retrieving Simplified Representations
  4. Assembly: Simplified Representations: Retrieving and Expanding LightWeight Graphics Simplified Representations
  5. Working with Multi-CAD Models Using Creo Unite: Functions that Support Multi-CAD Assemblies
  6. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  7. Working with Multi-CAD Models Using Creo Unite: Restrictions on Character Length for Multi-CAD Functions

Sample Code References:

  1. pt_examples ( TestSimpRep.c )