protected virtual DocumentType GetDocumentType() { Type type = this.GetType(); SolidEdgeDocumentAttribute attribute = type.GetSolidEdgeDocumentAttribute(); if (attribute != null) { return(attribute.DocumentType); } return(DocumentType.Unknown); }
internal static Type[] GetSolidEdgeDocumentTypes(this System.Reflection.Assembly assembly, Guid classId) { List <Type> list = new List <Type>(); foreach (Type type in assembly.GetSolidEdgeDocumentTypes()) { SolidEdgeDocumentAttribute attribute = type.GetSolidEdgeDocumentAttribute(); if (attribute != null) { if (attribute.ClassId.Equals(classId)) { list.Add(type); } } } return(list.ToArray()); }