@bindlmi: Use the collection from Plugin.m_inventorApplication.UserInterfaceManager.Environments in your foreach