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; }
|
}
|
}
|