using Autodesk.Revit.DB;
|
using HStation.Model;
|
using HStation.RevitDev.RevitDataExport.Common;
|
|
namespace HStation.RevitDev.RevitDataExport.Utility
|
{
|
public static class XYZExtension
|
{
|
public static RevitPosition ToCustomPoint(this XYZ point)
|
{
|
return new RevitPosition
|
{
|
X = (double)point.X.InnerToMM(),
|
Y = (double)point.Y.InnerToMM(),
|
Z = (double)point.Z.InnerToMM()
|
};
|
}
|
|
public static XYZ ToXYZ(this RevitPosition point)
|
{
|
var ret = new XYZ(point.X, point.Y, point.Z);
|
return ret;
|
}
|
}
|
}
|