Creates and accesses product occurrence PRC entities. More...

Data Structures

struct  A3DAsmAttachmentsInfosSLW
 A structure specifying assembly attachments infos specific to Solidworks format. More...
 
struct  A3DAsmProductOccurrenceData
 A structure specifying product occurrence data. More...
 
struct  A3DAsmProductOccurrenceDataCat
 A structure specifying product occurrence data specific to Catia format. More...
 
struct  A3DAsmProductOccurrenceDataCV5
 A structure specifying product occurrence data specific to CV5 format. More...
 
struct  A3DAsmProductOccurrenceDataInv
 A structure specifying product occurrence data specific to Inventor format. More...
 
struct  A3DAsmProductOccurrenceDataJT
 A structure specifying product occurrence data specific to JT format. More...
 
struct  A3DAsmProductOccurrenceDataProe
 A structure specifying product occurrence data specific to CV5 format. More...
 
struct  A3DAsmProductOccurrenceDataSLW
 A structure specifying product occurrence data specific to Solidworks format. More...
 
struct  A3DAsmProductOccurrenceDataUg
 A structure specifying product occurrence data specific to Ug format. More...
 
struct  A3DElementsByRefsetUg
 A structure specifying a List of Elements Ids associated to a refset, for Ug Format. More...
 
struct  A3DMaterialAndVisualisationInfos
 A structure to store material, visibility, suppressed, etc... informations, to put on other product occurence. Used for Assemblies / Views that modify those informations. It will be applied during shattered post-treatment. More...
 
struct  A3DPromotedBodyUg
 A structure specifying Promoted Bodies Ids for Ug Format. More...
 
struct  A3DViewMaterialAndVisualisationInfos
 A structure to store a list of MaterialAndVisualisationInfos, applied by a view. Used for a View that modify those informations. It will be applied during shattered post-treatment. More...
 

Modules

 Bit field flag definitions for product occurrences
 
 Part Definition
 
 Filter Module
 Creates and accesses filter entities that control the entities and layers included in the 3D image.
 

Enumerations

enum  A3DEProductLoadStatus {
  kA3DProductLoadStatusUnknown = 0,
  kA3DProductLoadStatusError,
  kA3DProductLoadStatusNotLoaded,
  kA3DProductLoadStatusNotLoadable,
  kA3DProductLoadStatusLoaded
}
 Load status of the PRC model file. More...
 
enum  A3DEProductOccurrenceTypeInv
 A structure specifying The type of Productoccurence, for Inventor. More...
 
enum  A3DEProductOccurrenceTypeSLW
 Product Occurrence Type in Solidworks. More...
 

Functions

A3DStatus A3DAsmProductOccurrenceAddView (A3DAsmProductOccurrence *pProductOccurrence, A3DMkpView *pView)
 Adds a view in the Array of views. More...
 
A3DStatus A3DAsmProductOccurrenceCreate (const A3DAsmProductOccurrenceData *pData, A3DAsmProductOccurrence **ppProductOccurrence)
 Creates an A3DAsmProductOccurrence from A3DAsmProductOccurrenceData structure. More...
 
A3DStatus A3DAsmProductOccurrenceEdit (const A3DAsmProductOccurrenceData *pData, A3DAsmProductOccurrence *pProductOccurrence)
 Allows to modify some data of a product occurrence. More...
 
A3DStatus A3DAsmProductOccurrenceGet (const A3DAsmProductOccurrence *pProductOccurrence, A3DAsmProductOccurrenceData *pData)
 Populates the A3DAsmProductOccurrenceData structure. More...
 
A3DStatus A3DAsmProductOccurrenceGetCat (const A3DAsmProductOccurrence *pProductOccurrence, A3DAsmProductOccurrenceDataCat *pData)
 Populates the A3DAsmProductOccurrenceDataCat structure. More...
 
A3DStatus A3DAsmProductOccurrenceGetCV5 (const A3DAsmProductOccurrence *pProductOccurrence, A3DAsmProductOccurrenceDataCV5 *pData)
 Populates the A3DAsmProductOccurrenceDataCV5 structure. More...
 
A3DStatus A3DAsmProductOccurrenceGetFilePathName (const A3DAsmProductOccurrence *pProductOccurrence, A3DUTF8Char **ppcFileName)
 Returns the full path name of the file associated with the product occurrence. Warning: Using this function on a product occurrence holding a prototype is not recommended, as the result is influenced by how the data is originally stored in the CAD file. More...
 
A3DStatus A3DAsmProductOccurrenceGetIdentifier (const A3DAsmProductOccurrence *pProductOccurrence, A3DUTF8Char **ppcIdentifier)
 Combine Part ID and Occurrence identifier. More...
 
A3DStatus A3DAsmProductOccurrenceGetInv (const A3DAsmProductOccurrence *pProductOccurrence, A3DAsmProductOccurrenceDataInv *pData)
 Populates the A3DAsmProductOccurrenceDataInv structure. More...
 
A3DStatus A3DAsmProductOccurrenceGetJT (const A3DAsmProductOccurrence *pProductOccurrence, A3DAsmProductOccurrenceDataJT *pData)
 Populates the A3DAsmProductOccurrenceDataJT structure. More...
 
A3DStatus A3DAsmProductOccurrenceGetOriginalFilePathName (const A3DAsmProductOccurrence *pProductOccurrence, A3DUTF8Char **ppcFileName)
 Returns the original file name stored in the CAD file. Warning: Using this function on a product occurrence holding a prototype is not recommended, as the result is influenced by how the data is originally stored in the CAD file. More...
 
A3DStatus A3DAsmProductOccurrenceGetProe (const A3DAsmProductOccurrence *pProductOccurrence, A3DAsmProductOccurrenceDataProe *pData)
 Populates the A3DAsmProductOccurrenceDataProe structure. More...
 
A3DStatus A3DAsmProductOccurrenceGetSLW (const A3DAsmProductOccurrence *pProductOccurrence, A3DAsmProductOccurrenceDataSLW *pData)
 Populates the A3DAsmProductOccurrenceDataSLW structure. More...
 
A3DStatus A3DAsmProductOccurrenceGetUg (const A3DAsmProductOccurrence *pProductOccurrence, A3DAsmProductOccurrenceDataUg *pData)
 Populates the A3DAsmProductOccurrenceDataUg structure. More...
 
A3DStatus A3DAsmProductOccurrenceSetProductPrototype (A3DAsmProductOccurrence *pProductOccurrence, A3DAsmProductOccurrence *pProductPrototype)
 Sets up an A3DAsmProductOccurrence entity as a prototype to another A3DAsmProductOccurrence entity. More...
 
A3DStatus A3DAsmProductOccurrenceUnload (A3DAsmProductOccurrence *pProductOccurrence)
 Removes all tessellation and geometry of an A3DAsmProductOccurrence entity. More...
 

Detailed Description

Creates and accesses product occurrence PRC entities.

A product occurrence denotes an assembly tree. If the assembly tree contains a single part, the product occurrence points directly to a part definition. In the case of a more complex assembly tree, a product occurrence is a hierarchy of child product occurrences. And a product occurrence can reference product occurrences that are designated as ProductPrototypes or ExternalData. Such ProductOccurrences denote subassembly structures, which in turn can point to PartDefinitions.

Entity type is kA3DTypeAsmProductOccurrence.

Enumeration Type Documentation

Load status of the PRC model file.

Version
2.1
Enumerator
kA3DProductLoadStatusUnknown 

Unknown status.

kA3DProductLoadStatusError 

Loading error. For example, there is a missing file.

kA3DProductLoadStatusNotLoaded 

Not loaded.

kA3DProductLoadStatusNotLoadable 

Not loadable. For example, limitations exist that prevent the product from loading.

kA3DProductLoadStatusLoaded 

The product was successfully loaded.

A structure specifying The type of Productoccurence, for Inventor.

Version
8.2

Product Occurrence Type in Solidworks.

Version
8.2

Function Documentation

A3DStatus A3DAsmProductOccurrenceAddView ( A3DAsmProductOccurrence pProductOccurrence,
A3DMkpView pView 
)
A3DStatus A3DAsmProductOccurrenceEdit ( const A3DAsmProductOccurrenceData pData,
A3DAsmProductOccurrence pProductOccurrence 
)

Allows to modify some data of a product occurrence.

Version
5.1
Returns
A3D_INVALID_DATA_STRUCT_SIZE
A3D_INVALID_DATA_STRUCT_NULL
A3D_INVALID_ENTITY_NULL
A3D_INVALID_ENTITY_TYPE
A3D_SUCCESS.
A3DStatus A3DAsmProductOccurrenceGet ( const A3DAsmProductOccurrence pProductOccurrence,
A3DAsmProductOccurrenceData pData 
)

Populates the A3DAsmProductOccurrenceData structure.

Version
2.0
Sample code
A3DAsmProductOccurrence pOccurrence = NULL;
/* Should call something here in order to get a valid A3DAsmProductOccurrence */
iErr = A3DAsmProductOccurrenceGet( pOccurrence , &sData );
if ( iErr == A3D_SUCCESS )
{
/* Insert here your own code to parse through members of ProductOccurrence */
iErr = A3DAsmProductOccurrenceGet( NULL, &sData );
}
Returns
A3D_INITIALIZE_NOT_CALLED
A3D_INVALID_DATA_STRUCT_SIZE
A3D_INVALID_DATA_STRUCT_NULL
A3D_INVALID_ENTITY_NULL
A3D_INVALID_ENTITY_TYPE
A3D_SUCCESS
A3DStatus A3DAsmProductOccurrenceGetFilePathName ( const A3DAsmProductOccurrence pProductOccurrence,
A3DUTF8Char **  ppcFileName 
)

Returns the full path name of the file associated with the product occurrence. Warning: Using this function on a product occurrence holding a prototype is not recommended, as the result is influenced by how the data is originally stored in the CAD file.

Version
4.0
Returns
A3D_INVALID_DATA_STRUCT_SIZE
A3D_INVALID_DATA_STRUCT_NULL
A3D_PRODUCTOCCURRENCE_INCONSISTENT_PART_EXTERNAL
A3D_PRODUCTOCCURRENCE_INCONSISTENT_EMPTY
A3D_SUCCESS.
A3DStatus A3DAsmProductOccurrenceGetIdentifier ( const A3DAsmProductOccurrence pProductOccurrence,
A3DUTF8Char **  ppcIdentifier 
)

Combine Part ID and Occurrence identifier.

Version
9.1
Returns
A3D_INVALID_ENTITY_NULL
A3D_INVALID_ENTITY_TYPE
A3D_SUCCESS.
A3DStatus A3DAsmProductOccurrenceGetOriginalFilePathName ( const A3DAsmProductOccurrence pProductOccurrence,
A3DUTF8Char **  ppcFileName 
)

Returns the original file name stored in the CAD file. Warning: Using this function on a product occurrence holding a prototype is not recommended, as the result is influenced by how the data is originally stored in the CAD file.

Version
8.2
Returns
A3D_INVALID_DATA_STRUCT_SIZE
A3D_INVALID_DATA_STRUCT_NULL
A3D_PRODUCTOCCURRENCE_INCONSISTENT_PART_EXTERNAL
A3D_PRODUCTOCCURRENCE_INCONSISTENT_EMPTY
A3D_SUCCESS.
A3DStatus A3DAsmProductOccurrenceSetProductPrototype ( A3DAsmProductOccurrence pProductOccurrence,
A3DAsmProductOccurrence pProductPrototype 
)