Getting Formats Information
Information on the supported formats can be gathered from the static Formats class.
Check if a file is supported
To check if a file is supported, use :
public static bool IsFileSupported(string file, bool liveSync = false)
NOTE This will return false if the file doesn't exists. Make sure you do this check before calling this method if you need to catch that use scenario.
Get list of supported formats
To get the list of all supported formats (lower case, dot leaded. Example : ".step"), use :
public static HashSet<string> SupportedFormats
To get the list of all supported formats, with the FileBrowser syntax, use :
public static string[] SupportedFormatsForFileBrowser
To get a dictionnary of all supported formats, grouped by type, use :
public static Dictionary<string, string> SupportedFormatsGrouped
For more information, please check the API Documentation.