添加项目文件。
This commit is contained in:
43
CDMUtil/ToCDM/CDMWall.cs
Normal file
43
CDMUtil/ToCDM/CDMWall.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user