When SystemWeaver Architects create item types, part types and issues, they can select an icon to be displayed for each type in the swExplorer client, so that users can easily distinguish between different types.
Item Type Icon Selection in the swArchitect Client
Using the Extension API, you can retrieve the icon for specific types when the extension is initialized, use the following code:
using SystemWeaver.Images; private SWImages SwImages = new SWImages(); private static ImageSource GetImageSource(IswType type) { if (type != null && type.DisplayImageIndex >= 0 && type.DisplayImageIndex < SystemWeaver.Images.SWImages.Instance.MetaDataImages.Length) return SystemWeaver.Images.SWImages.Instance.MetaDataImages[type.DisplayImageIndex]; else return null; } //Prior to release Kålltorp R46, use SystemWeaver.Resources.SWImages instead of SystemWeaver.Images.SWImages. Also, with the earlier releases, it is not possible to retrieve icons using the Nuget package. To do this, you would need to use the SystemWeaverClientApi.dll.