lixiaojun
2024-07-23 5f2fed99394f95c133d330349ddf367b669951e9
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
namespace Yw.BIMFace
{
    /// <summary>
    ///  rvt 模型配置项
    /// </summary>
    [Serializable]
    public class RvtModelConfig
    {
        public RvtModelConfig()
        {
            //设置 null,在序列化的时候忽略该字段,不出现在序列化后的字符串中
            Texture = false;
            //ViewName = "3D";
            //DisplayLevel = "fine";
            //ExportHiddenObjects = false;
            //ExportSchedule = false;
            //ExportViewImage = false;
            //ViewImageDPI = "150";
            //Language = "zh-CN";
 
            //ExportDwg = true;
            //ExportDrawing = true;
            //ExportPdf = null;
 
            //ExportDwgInstance = null;
            //ExportSystemType = null;
            //ExportProperties = null;
            //Unit = null;
            //ToBimtiles = null;
        }
 
        /// <summary>
        ///  转换时是否添加材质。默认为 false
        /// </summary>
        [JsonProperty("texture", NullValueHandling = NullValueHandling.Ignore)]
        public bool? Texture { get; set; }
 
        /// <summary>
        ///  转换使用的3D视图。默认为 {3D}
        /// </summary>
        [JsonProperty("viewName", NullValueHandling = NullValueHandling.Ignore)]
        public string ViewName { get; set; }
 
        /// <summary>
        ///  设置转换的精细度,fine(精细),medium(中等),coarse(粗略)。默认为 fine
        /// </summary>
        [JsonProperty("displaylevel", NullValueHandling = NullValueHandling.Ignore)]
        public string DisplayLevel { get; set; }
 
        /// <summary>
        /// 是否导出三维视图中隐藏的构件。默认为 false
        /// </summary>
        [JsonProperty("exportHiddenObjects", NullValueHandling = NullValueHandling.Ignore)]
        public bool? ExportHiddenObjects { get; set; }
 
        /// <summary>
        /// 是否使用明细表内容。默认为 false
        /// </summary>
        [JsonProperty("exportSchedule", NullValueHandling = NullValueHandling.Ignore)]
        public bool? ExportSchedule { get; set; }
 
        /// <summary>
        /// 是否导出视图图片。默认为 false
        /// </summary>
        [JsonProperty("exportViewImage", NullValueHandling = NullValueHandling.Ignore)]
        public bool? ExportViewImage { get; set; }
 
        /// <summary>
        /// 设置导出视图图片精度(72,150,300)。默认为 150
        /// </summary>
        [JsonProperty("viewImageDPI", NullValueHandling = NullValueHandling.Ignore)]
        public string ViewImageDPI { get; set; }
 
        /// <summary>
        ///  导出三维视图列表("all"代表所有视图)。默认值为[]
        /// </summary>
        [JsonProperty("export3DViews", NullValueHandling = NullValueHandling.Ignore)]
        public string[] Export3DViews { get; set; }
 
        /// <summary>
        /// 导出指定分组中的图纸(多个层级用"\\"划分,如:{"drawingGroups": ["03.PUBLISHED\\DETAILS", "02.SHARED"]})。默认值为[]
        /// </summary>
        [JsonProperty("drawingGroups", NullValueHandling = NullValueHandling.Ignore)]
        public string[] DrawingGroups { get; set; }
 
        /// <summary>
        /// 语言版本(zh_CN(中文版),en_GB(英文版))。默认:zh_CN
        /// </summary>
        [JsonProperty("language", NullValueHandling = NullValueHandling.Ignore)]
        public string Language { get; set; }
 
        /// <summary>
        /// 指定构件属性作为objectData,并根据objectData组织构件树。指定的构件属性作为构件树的各级节点,层级顺序与输入的属性顺序一致,前面的字段作为后面字段的父节点。
        /// 默认为空
        /// </summary>
        [JsonProperty("customizedObjectData", NullValueHandling = NullValueHandling.Ignore)]
        public string CustomizedObjectData { get; set; }
 
        /// <summary>
        ///  三维模型中如果包含二维图纸,则设置为true时,转换后在目录树中能看到图纸列表。默认为 false
        /// </summary>
        [JsonProperty("exportDrawing", NullValueHandling = NullValueHandling.Ignore)]
        public bool? ExportDrawing { get; set; }
 
 
        /// <summary>
        ///  rvt2md是否导出dwg文件。默认为 false
        /// </summary>
        [JsonProperty("exportDwg", NullValueHandling = NullValueHandling.Ignore)]
        public bool? ExportDwg { get; set; }
 
        /// <summary>
        ///  dwg2md是否导出pdf文件。默认为 false
        /// </summary>
        [JsonProperty("exportPdf", NullValueHandling = NullValueHandling.Ignore)]
        public bool? ExportPdf { get; set; }
 
        /// <summary>
        /// 是否导出dwg实例。默认为 false
        /// </summary>
        [JsonProperty("exportDwgInstance", NullValueHandling = NullValueHandling.Ignore)]
        public bool? ExportDwgInstance { get; set; }
 
        /// <summary>
        /// 是否在userData中加入mepSystemType。默认为 false
        /// </summary>
        [JsonProperty("exportSystemType", NullValueHandling = NullValueHandling.Ignore)]
        public bool? ExportSystemType { get; set; }
 
        /// <summary>
        /// 是否在导出NWD的属性db文件。默认为 false
        /// </summary>
        [JsonProperty("exportProperties", NullValueHandling = NullValueHandling.Ignore)]
        public bool? ExportProperties { get; set; }
 
        /// <summary>
        ///  设置转换使用的单位,取值"ft"\"feet"\"英尺"采用revit默认的英尺为单位,默认以毫米为单位。默认为空
        /// </summary>
        [JsonProperty("unit", NullValueHandling = NullValueHandling.Ignore)]
        public string Unit { get; set; }
 
        /// <summary>
        /// RVT文件转换为流式加载模式。true:流式加载 false:非流式加载,即全量加载。
        /// 建议大模型,三角片面数量大于2000万以上的模型使用流式加载。
        /// </summary>
        [JsonProperty("toBimtiles", NullValueHandling = NullValueHandling.Ignore)]
        public bool? ToBimtiles { get; set; }
    }
}