添加项目文件。

This commit is contained in:
GG Z
2026-02-23 14:35:54 +08:00
parent de381a07f6
commit 196af6105f
54 changed files with 5698 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
using Autodesk.Revit.DB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CDM.Interop.Revit.CDMComponent
{
class CDMOpening : CDMComponent
{
public CDMOpening(Opening Opening, View3D view3D)
{
self = Opening;
var boundingBox = Opening.get_BoundingBox(view3D);
Length = (boundingBox.Max.X - boundingBox.Min.X) * 304.8;
Width = (boundingBox.Max.Y - boundingBox.Min.Y) * 304.8;
//Xl = boundingBox.Min.X * 304.8 / 1000;
//Yw = boundingBox.Min.Y * 304.8 / 1000;
//Zh = boundingBox.Min.Z * 304.8 / 1000;
Xl = boundingBox.Min.X * 304.8 / 1000;
Yw = boundingBox.Min.Y * 304.8 / 1000 + Width / 1000 / 2;
Zh = boundingBox.Min.Z * 304.8 / 1000;
}
public double Length { get; private set; }
public double Width { get; private set; }
public Opening self;
}
}