When Architects create item types, part types and issues using the swArchitect client, they can select an icon to be displayed for each 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.Resources;

private SWImages SwImages = new SWImages();

private static ImageSource GetImageSource(IswType type)
{
if (type != null
              && type.DisplayImageIndex >= 0
              && type.DisplayImageIndex < SWImages.MetaDataImageSources.Length)
              return SwImages.MetaDataImageSources[type.DisplayImageIndex];
        else
              return null;
}


Example of Icon Display in a View