| 10 | namespace CodeCave.Revit.Toolkit.OLE |
| 11 | { |
| 12 | public class RevitFileInfo |
| 13 | { |
| 14 | private static readonly Regex asianCharMatcher = new Regex(@"\p{IsCJKUnifiedIdeographs}", RegexOptions.Compiled | RegexOptions.IgnoreCase); |
| 15 | |
| 16 | static RevitFileInfo() |
| 17 | { |
| 18 | Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); |
| 19 | } |
| 20 | |
| 21 | #region Properties |
| 22 | |
| 23 | /// <summary> |
| 24 | /// Gets the username. |
| 25 | /// </summary> |
| 26 | /// <value>The username.</value> |
| 27 | public string Username { get; internal set; } |
| 28 | |
| 29 | /// <summary> |
| 30 | /// Gets the unique identifier. |
| 31 | /// </summary> |
| 32 | /// <value> |
| 33 | /// The unique identifier. |
| 34 | /// </value> |
| 35 | public Guid Guid { get; internal set; } |
| 36 | |
| 37 | /// <summary> |
| 38 | /// Gets the locale. |
| 39 | /// </summary> |
| 40 | /// <value> |
| 41 | /// The locale. |
| 42 | /// </value> |
| 43 | public CultureInfo Locale { get; internal set; } |
| 44 | |
| 45 | /// <summary> |
| 46 | /// Gets or sets the part atom. |
| 47 | /// </summary> |
| 48 | /// <value> |
| 49 | /// The part atom. |
| 50 | /// </value> |
| 51 | public PartAtom PartAtom { get; private set; } |
| 52 | |
| 53 | /// <summary> |
| 54 | /// Gets the category. |
| 55 | /// </summary> |
| 56 | /// <value> |
| 57 | /// The category. |
| 58 | /// </value> |
| 59 | public string Category => PartAtom?.Category; |
| 60 | |
| 61 | /// <summary> |
| 62 | /// Gets the types. |
| 63 | /// </summary> |
| 64 | /// <value> |
| 65 | /// The types. |
| 66 | /// </value> |
| 67 | public FamilyType[] Types => PartAtom?.Family?.Parts; |
| 68 | |
| 69 | public string ProductVendor { get; internal set; } = "Autodesk"; |
nothing calls this directly
no outgoing calls
no test coverage detected