zhangyk-c
2024-07-20 33c800c1bd24faa163bb8dac5fcdd307077478d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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;
        }
    }
}