using HStation.RevitDev.Model.ModelEnum; using System; namespace HStation.RevitDev.Model.AttributeClass { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] public class ExportModelAttribute : Attribute { private ExportType exportType = ExportType.EFT_Unknown; public ExportModelAttribute(ExportType exportType) { ExportType = exportType; } public ExportType ExportType { get => exportType; set => exportType = value; } } [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public class ParameterAttribute : Attribute { public string m_parameterName { get; set; } public ParameterUnit m_unit { get; set; } public ParameterAttribute(string parameterName, ParameterUnit unit = ParameterUnit.PU_Unknown) { m_parameterName = parameterName; m_unit = unit; } } [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public class ExportTypeAttribute : Attribute { public ExportType m_exportType; public ExportTypeAttribute(ExportType exportType) { m_exportType = exportType; } } [AttributeUsage(AttributeTargets.Property | AttributeTargets.Class, AllowMultiple = false, Inherited = true)] public class RevitTypeAttribute : Attribute { public RevitType m_revitType = RevitType.RFT_Others; public RevitTypeAttribute(RevitType revitType) { m_revitType = revitType; } } }