添加项目文件。
This commit is contained in:
18
KGdev.BI3D.Revit.ExporterV2/XYZExtensions.cs
Normal file
18
KGdev.BI3D.Revit.ExporterV2/XYZExtensions.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Autodesk.Revit.DB;
|
||||
|
||||
namespace KGdev.BI3D.Revit.ExporterV2
|
||||
{
|
||||
internal static class XYZExtensions
|
||||
{
|
||||
public static Position To3DBIPosition(this XYZ revitXYZ)
|
||||
{
|
||||
return new Position
|
||||
{
|
||||
X = (float)(-(float)revitXYZ.X * 12.0),
|
||||
Y = (float)(revitXYZ.Z * 12.0),
|
||||
Z = (float)(revitXYZ.Y * 12.0)
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user