添加项目文件。

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

43
CDMUtil/ToCDM/CDMWall.cs Normal file
View File

@@ -0,0 +1,43 @@
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 CDMWall : CDMComponent
{
public string BaseElev
{
get
{
return BaseLevel.get_Parameter(BuiltInParameter.LEVEL_ELEV).AsValueString();
}
}
public string TopElev
{
get
{
double result = Convert.ToDouble(BaseElev) + Convert.ToDouble(self.get_Parameter(BuiltInParameter.WALL_USER_HEIGHT_PARAM).AsValueString());
return result.ToString();
}
}
public string Thickness { get; set; }
public string StrExtendPoint => string.Format("({0},{1})", ExtendPoint.X * 304.8, ExtendPoint.Y * 304.8);
public Wall self;
public Level BaseLevel { get; set; }
public XYZ ExtendPoint { get; set; }
public List<CDMOpening> Holes { get; set; }
}
}