Layer Module
Detailed Description
-
group
a3d_layer
Accesses layer entities.
Entity type is kA3DTypeAsmLayerEntity.
Layers help in controlling the visibility and selectability of features within a part. They can be used to simplify the part model view, focus on specific features, and prevent accidental modifications.
If the A3DAsmLayerEntityData::m_ppReferenceEntities member is empty. It doesn’t necessarily mean that this layer is empty. In this case, you need to check the layerIndex field of an entity to know if it’s referenced by a layer.
Function Documentation
-
A3DStatus
A3DAsmProductOccurrenceGetLayerList
(const A3DAsmProductOccurrence *pProductOccurrence, A3DUns32 *piLayers, A3DAsmLayer **ppLayerArray) Allow to get the layer name of an item from his layer defined by A3DMiscCascadedAttributesData::m_usLayer.
- Deprecated:
This function is deprecated. Please use A3DAsmLayerEntityGet instead.
- Version
- 11.1
Return values: - A3D_INVALID_ENTITY_NULL –
- A3D_INVALID_ENTITY_TYPE –
- A3D_SUCCESS –
Returns: A3D_SUCCESS
on success, or an error code on failure
-
A3DStatus
A3DAsmLayerEntityGet
(const A3DAsmLayerEntity *pLayerEntity, A3DAsmLayerEntityData *pData) Populates an A3DAsmLayerEntityData structure.
- Version
- 25.4
Return values: - A3D_INITIALIZE_NOT_CALLED –
- A3D_INVALID_DATA_STRUCT_SIZE –
- A3D_INVALID_DATA_STRUCT_NULL –
- A3D_INVALID_ENTITY_NULL –
- A3D_INVALID_ENTITY_TYPE –
- A3D_SUCCESS –
Returns: A3D_SUCCESS
on success, or an error code on failure