添加项目文件。
This commit is contained in:
51
DotNet.Exchange.Revit/ExportElment.cs
Normal file
51
DotNet.Exchange.Revit/ExportElment.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using Autodesk.Revit.DB;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DotNet.Exchange.Revit.Export
|
||||
{
|
||||
/// <summary>
|
||||
/// 自定义测试导出类.
|
||||
/// </summary>
|
||||
/// <seealso cref="DotNet.Exchange.Revit.Export.IExportElement" />
|
||||
public class ExportElment : IExportElement
|
||||
{
|
||||
// 临时测试
|
||||
|
||||
public HashSet<PolygonMeshNode> PolygonMeshNodes = new HashSet<PolygonMeshNode>();
|
||||
|
||||
bool IExportElement.OnElementStart(Autodesk.Revit.DB.Element elem)
|
||||
{
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool IExportElement.OnGeometryObjectStart(GeometryObjectNode solid)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void IExportElement.OnMaterial(Autodesk.Revit.DB.ElementId materialId)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void IExportElement.OnPolygonMesh(PolygonMeshNode polygonMesh)
|
||||
{
|
||||
PolygonMeshNodes.Add(polygonMesh);
|
||||
}
|
||||
|
||||
void IExportElement.OnGeometryObjectEnd(GeometryObjectNode solid)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void IExportElement.OnElementEnd(Autodesk.Revit.DB.Element elem)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user