# IconUtil.getGlyphIcon

**URL:** <https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801>\
**Category:** Module Development\
**Tags:** sdk, vision, ignition81\
**Created:** [May 19, 2022, 5:53pm UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801 "2022-05-19T17:53:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![cody.tamaki](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cody.tamaki](https://forum.inductiveautomation.com/u/cody.tamaki)\
**Post date:** [May 19, 2022, 5:53pm UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801/1 "2022-05-19T17:53:41Z")

</div>

Hello,

I see you guys have a method to return GlyphIcons in the SDK. I’m wondering if you guys have any kind of guide/documentation on what these Glyph Icon numbers/names correspond to? I’m hoping I can reuse some of the Icons you guys already have in your designer 🙂

[Java Doc Link](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.16/com/inductiveautomation/ignition/designer/gui/IconUtil.html#getGlyphIcon(java.lang.String,java.lang.String,int))

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 19, 2022, 7:25pm UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801/2 "2022-05-19T19:25:00Z")

</div>

IconUtil is probably not the class to use. I would start with the static methods on [`VectorIcons`](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.16/com/inductiveautomation/ignition/client/icons/VectorIcons.html). I think you should be able to run the main method on that class, which will open a dialog showing our built in icons.

---

<div class="post-metadata">

**Author:** ![cody.tamaki](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cody.tamaki](https://forum.inductiveautomation.com/u/cody.tamaki)\
**Post date:** [May 19, 2022, 11:37pm UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801/3 "2022-05-19T23:37:10Z")

</div>

If I wanted to add my own custom svg icons into a .json file like you guys are doing with that class, what format do I need to convert those into?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 20, 2022, 2:21pm UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801/4 "2022-05-20T14:21:49Z")

</div>

It’s pretty rudimentary; a truncated example:

```auto
[
  {
    "name": "session",
    "paths": [
      "M14.25,3.53l-5.5,-3.17c-0.463542,-0.270029 ..."
    ]
  },
  {
    "name": "page",
    "paths": [
      "M14.5,1c0.276142,0 ..."
    ]
  }
]

```

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [July 29, 2022, 5:45pm UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801/5 "2022-07-29T17:45:26Z")

</div>

> [@paul-griffith](#):
>
> I think you should be able to run the main method on that class, which will open a dialog showing our built in icons.

I am also trying to see the built-in Icons, and I am running into some problems doing this.

Am I missing something on this command?

```auto
java -cp './client-api-8.0.5.jar' com.inductiveautomation.ignition.client.icons.VectorIcons 

```

I am getting an issue with some other potential libraries missing, is there an easier way to execute the main method on that class?

```auto
Exception in thread "main" java.lang.NoClassDefFoundError: com/inductiveautomation/ignition/common/gson/JsonParser
        at com.inductiveautomation.ignition.client.icons.VectorIcons.init(VectorIcons.java:65)
        at com.inductiveautomation.ignition.client.icons.VectorIcons.<clinit>(VectorIcons.java:43)
Caused by: java.lang.ClassNotFoundException: com.inductiveautomation.ignition.common.gson.JsonParser
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        ... 2 more

```

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 29, 2022, 5:54pm UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801/6 "2022-07-29T17:54:18Z")

</div>

> [@kgamble](#):
>
> s there an easier way to execute the main method on that class?

From within an IDE that knows about all of the dependencies. In a project that targets Vision Client scope (that's what client-api is for). You are unlikely to easily succeed on the command line.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [July 29, 2022, 5:55pm UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801/7 "2022-07-29T17:55:24Z")

</div>

Darn! I use VSCode as my typical IDE, sounds like I am going to need to open up Eclipse for this one… lol

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 29, 2022, 5:57pm UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801/8 "2022-07-29T17:57:23Z")

</div>

You are trying to use VSCode for module development? And your fallback is Eclipse?

Masochist.

IntelliJ for the win! (Says the guy who dug in his heels for years before switching.)

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [July 29, 2022, 5:58pm UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801/9 "2022-07-29T17:58:25Z")

</div>

> [@pturmel](#):
>
> You are trying to use VSCode for module development?

Has surprisingly worked pretty well, but I won't act like an expert in module development here, so I am sure there is stuff I am missing.

> [@pturmel](#):
>
> IntelliJ for the win!

I'll try this out instead, since I didnt even have Eclipse installed lol

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [July 29, 2022, 6:25pm UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801/10 "2022-07-29T18:25:16Z")

</div>

+1 for IntelliJ  
I’m not sure how I would be able to function without the bytecode decompiler.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [April 4, 2025, 1:45am UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801/11 "2025-04-04T01:45:56Z")

</div>

> [@paul-griffith](#):
>
> IconUtil is probably not the class to use. I would start with the static methods on [`VectorIcons`](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.16/com/inductiveautomation/ignition/client/icons/VectorIcons.html). I think you should be able to run the main method on that class, which will open a dialog showing our built in icons.

A few years later, I came back and totally forgot how I did this in the first place..

So here is a simple Repo with it for anyone who comes across this in the future and is a masochist like me in VS Code 🙂

> **[GitHub - keith-gamble/ignition-module-icon-viewer: A simple repository to show the Icons in the...](https://github.com/keith-gamble/ignition-module-icon-viewer)**
>
> A simple repository to show the Icons in the native Ignition Common Library

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 4, 2025, 3:24pm UTC](https://forum.inductiveautomation.com/t/iconutil-getglyphicon/59801/12 "2025-04-04T15:24:06Z")

</div>

Psst, you didn't need any reflection:

> <https://github.com/keith-gamble/ignition-module-icon-viewer/pull/1>
