# Get icon bitmap of a component that will be created by a part creator

**URL:** <https://forum.visualcomponents.com/t/get-icon-bitmap-of-a-component-that-will-be-created-by-a-part-creator/7634>\
**Category:** .Net Add-on Programming\
**Created:** [January 20, 2025, 1:14pm UTC](https://forum.visualcomponents.com/t/get-icon-bitmap-of-a-component-that-will-be-created-by-a-part-creator/7634 "2025-01-20T13:14:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![romain\_b](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@romain\_b](https://forum.visualcomponents.com/u/romain_b)\
**Post date:** [January 20, 2025, 1:14pm UTC](https://forum.visualcomponents.com/t/get-icon-bitmap-of-a-component-that-will-be-created-by-a-part-creator/7634/1 "2025-01-20T13:14:56Z")

</div>

Hello,

In the context of an Add-on, I am trying to access the icon bitmap of a component that will be created by a part creator, in order to display it on a button. I want to access it from the .Net part of the code.

Since I want to display the icon before starting the simulation, no part is yet created in the simulation world by the part creator.

I haven’t been able to find a way to achieve this. I tried using the part creator properties, but they only provide access to the part URI, and I couldn’t figure out how to retrieve the icon bitmap from this information.

Does anyone have an idea of how I could access the bitmap of the part?

Thank you very much for your help.

---

<div class="post-metadata">

**Author:** ![TSy](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/tsy/32/761_2.png) [@TSy](https://forum.visualcomponents.com/u/TSy)\
**Post date:** [January 20, 2025, 1:30pm UTC](https://forum.visualcomponents.com/t/get-icon-bitmap-of-a-component-that-will-be-created-by-a-part-creator/7634/2 "2025-01-20T13:30:19Z")

</div>

You need to load the component from the Uri into the simulation world and can then access its internals and metadata through ISimComponent.  
See IApplication.LoadLayout(…)

Or what icon are you referring to? The ones shown in eCat UI?

---

<div class="post-metadata">

**Author:** ![romain\_b](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@romain\_b](https://forum.visualcomponents.com/u/romain_b)\
**Post date:** [January 20, 2025, 1:41pm UTC](https://forum.visualcomponents.com/t/get-icon-bitmap-of-a-component-that-will-be-created-by-a-part-creator/7634/3 "2025-01-20T13:41:33Z")

</div>

Thank you for your answer!

Yes, exactly, I am referring to the one shown in the eCatalog UI. I wanted to avoid loading the part into the world, as it can be inconvenient for the user to wait for the part to load.

Is there any possible alternative? Since the icon bitmap is displayed in the eCatalog, I feel like there should be a way to access it without loading the part into the world.

---

<div class="post-metadata">

**Author:** ![TSy](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/tsy/32/761_2.png) [@TSy](https://forum.visualcomponents.com/u/TSy)\
**Post date:** [January 20, 2025, 3:05pm UTC](https://forum.visualcomponents.com/t/get-icon-bitmap-of-a-component-that-will-be-created-by-a-part-creator/7634/4 "2025-01-20T15:05:20Z")

</div>

If the component is known to the eCat indexer / local database, you can probably find the metadata using the database directly. Basically need to find Item object with corresponding VCID / URI and get the icon file path from it. This isn’t part of the VC public API, though so it might change or cease to exist.

The database may also contain multiple matching items and the VCID resolving order is complicated, so you might not be able to reliably figure out the correct component which the part creator will actually create.

Something similar to this:

> [@Add component from eCatalog](https://forum.visualcomponents.com/t/add-component-from-ecatalog/573/2):
>
> You can add reference to VisualComponents.eCatalogue.DataModel.dll and then do something like this. I didn’t test it so handling details such as file paths etc. might be wrong. using Caliburn.Micro; using System; using System.Collections.Generic; using System.Linq; using VisualComponents.Create3D; using VisualComponents.eCatalogue.DataModel.Data; using VisualComponents.eCatalogue.DataModel.Data.Entities; namespace ECatAdder { class ECatAdderTest { private List\<Item\> eCatCompone…
