namespace Yw.BIMFace { /// /// rvt 模型配置项 /// [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; } /// /// 转换时是否添加材质。默认为 false /// [JsonProperty("texture", NullValueHandling = NullValueHandling.Ignore)] public bool? Texture { get; set; } /// /// 转换使用的3D视图。默认为 {3D} /// [JsonProperty("viewName", NullValueHandling = NullValueHandling.Ignore)] public string ViewName { get; set; } /// /// 设置转换的精细度,fine(精细),medium(中等),coarse(粗略)。默认为 fine /// [JsonProperty("displaylevel", NullValueHandling = NullValueHandling.Ignore)] public string DisplayLevel { get; set; } /// /// 是否导出三维视图中隐藏的构件。默认为 false /// [JsonProperty("exportHiddenObjects", NullValueHandling = NullValueHandling.Ignore)] public bool? ExportHiddenObjects { get; set; } /// /// 是否使用明细表内容。默认为 false /// [JsonProperty("exportSchedule", NullValueHandling = NullValueHandling.Ignore)] public bool? ExportSchedule { get; set; } /// /// 是否导出视图图片。默认为 false /// [JsonProperty("exportViewImage", NullValueHandling = NullValueHandling.Ignore)] public bool? ExportViewImage { get; set; } /// /// 设置导出视图图片精度(72,150,300)。默认为 150 /// [JsonProperty("viewImageDPI", NullValueHandling = NullValueHandling.Ignore)] public string ViewImageDPI { get; set; } /// /// 导出三维视图列表("all"代表所有视图)。默认值为[] /// [JsonProperty("export3DViews", NullValueHandling = NullValueHandling.Ignore)] public string[] Export3DViews { get; set; } /// /// 导出指定分组中的图纸(多个层级用"\\"划分,如:{"drawingGroups": ["03.PUBLISHED\\DETAILS", "02.SHARED"]})。默认值为[] /// [JsonProperty("drawingGroups", NullValueHandling = NullValueHandling.Ignore)] public string[] DrawingGroups { get; set; } /// /// 语言版本(zh_CN(中文版),en_GB(英文版))。默认:zh_CN /// [JsonProperty("language", NullValueHandling = NullValueHandling.Ignore)] public string Language { get; set; } /// /// 指定构件属性作为objectData,并根据objectData组织构件树。指定的构件属性作为构件树的各级节点,层级顺序与输入的属性顺序一致,前面的字段作为后面字段的父节点。 /// 默认为空 /// [JsonProperty("customizedObjectData", NullValueHandling = NullValueHandling.Ignore)] public string CustomizedObjectData { get; set; } /// /// 三维模型中如果包含二维图纸,则设置为true时,转换后在目录树中能看到图纸列表。默认为 false /// [JsonProperty("exportDrawing", NullValueHandling = NullValueHandling.Ignore)] public bool? ExportDrawing { get; set; } /// /// rvt2md是否导出dwg文件。默认为 false /// [JsonProperty("exportDwg", NullValueHandling = NullValueHandling.Ignore)] public bool? ExportDwg { get; set; } /// /// dwg2md是否导出pdf文件。默认为 false /// [JsonProperty("exportPdf", NullValueHandling = NullValueHandling.Ignore)] public bool? ExportPdf { get; set; } /// /// 是否导出dwg实例。默认为 false /// [JsonProperty("exportDwgInstance", NullValueHandling = NullValueHandling.Ignore)] public bool? ExportDwgInstance { get; set; } /// /// 是否在userData中加入mepSystemType。默认为 false /// [JsonProperty("exportSystemType", NullValueHandling = NullValueHandling.Ignore)] public bool? ExportSystemType { get; set; } /// /// 是否在导出NWD的属性db文件。默认为 false /// [JsonProperty("exportProperties", NullValueHandling = NullValueHandling.Ignore)] public bool? ExportProperties { get; set; } /// /// 设置转换使用的单位,取值"ft"\"feet"\"英尺"采用revit默认的英尺为单位,默认以毫米为单位。默认为空 /// [JsonProperty("unit", NullValueHandling = NullValueHandling.Ignore)] public string Unit { get; set; } /// /// RVT文件转换为流式加载模式。true:流式加载 false:非流式加载,即全量加载。 /// 建议大模型,三角片面数量大于2000万以上的模型使用流式加载。 /// [JsonProperty("toBimtiles", NullValueHandling = NullValueHandling.Ignore)] public bool? ToBimtiles { get; set; } } }