# Issue Adding Custom Attributes to Entity Using A3D API

**URL:** <https://forum.techsoft3d.com/t/issue-adding-custom-attributes-to-entity-using-a3d-api/4241>\
**Category:** HOOPS Exchange\
**Tags:** code, learn, knowledge-base\
**Created:** [December 2, 2024, 5:23am UTC](https://forum.techsoft3d.com/t/issue-adding-custom-attributes-to-entity-using-a3d-api/4241 "2024-12-02T05:23:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amrut.pujari](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@amrut.pujari](https://forum.techsoft3d.com/u/amrut.pujari)\
**Post date:** [December 2, 2024, 5:23am UTC](https://forum.techsoft3d.com/t/issue-adding-custom-attributes-to-entity-using-a3d-api/4241/1 "2024-12-02T05:23:40Z")

</div>

Hello everyone,

I am currently trying to add custom attributes to an `A3DEntity`, but I’m encountering difficulties when trying to export the model to **GLTF** or **GLB** format.

### What I’m Trying to Do:

1. Add custom attributes to an entity in A3D.
2. Ensure these attributes are included when the entity is exported to **GLTF** or **GLB**.

### Code Example:

I have written code to add attributes using the `A3DMiscAttributeCreate` and `A3DRootBaseSet` functions to attach custom attributes to the entity, but when I try to export it, the attributes are not included in the GLTF/GLB export.

### My Question:

Is it possible to add custom attributes to an **A3DEntity** and ensure they are included in the **GLTF/GLB** export? If so, could you provide any guidance or point out any necessary steps that I might be missing?

Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![Man](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@Man](https://forum.techsoft3d.com/u/Man)\
**Post date:** [December 4, 2024, 8:48am UTC](https://forum.techsoft3d.com/t/issue-adding-custom-attributes-to-entity-using-a3d-api/4241/3 "2024-12-04T08:48:26Z")

</div>

Hello @amrut.pujari  
Unfortunately, HOOPS Exchange does not currently support exporting attributes to GLTF/GLB format.  
However, if you want to verify that your code successfully creates the attributes, you can do so by exporting the model to PRC format. Also, the **CreatePRCBrepWithGeometry** sample is included in the HOOPS Exchange package. This sample demonstrates how to create attributes, which can help you confirm that your implementation is correct.  
If you have any further questions please let me know.

Best Regards,  
Man
