using HStation.RevitDev.Model.Enum;
|
using System;
|
|
namespace HStation.RevitDev.Model.AttributeClass
|
{
|
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
public class ExportAttribute : Attribute
|
{
|
private ExportFamilyType exportType = ExportFamilyType.EFT_Unknown;
|
public ExportAttribute(ExportFamilyType exportType)
|
{
|
ExportType = exportType;
|
}
|
|
public ExportFamilyType ExportType { get => exportType; set => exportType = value; }
|
}
|
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
public class ParameterAttribute : Attribute
|
{
|
public string Name { get; set; }
|
public ParameterAttribute(string parameterName)
|
{
|
Name = parameterName;
|
}
|
}
|
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
|
public class ExportTypeAttribute : Attribute
|
{
|
public ExportFamilyType m_exportType;
|
public ExportTypeAttribute(ExportFamilyType exportType)
|
{
|
m_exportType = exportType;
|
}
|
}
|
}
|