C#进行Revit二次开发_新建墙类型
新建墙类型
Revit创建墙类型
创建墙类型实际就是将系统墙类型进行复制,通过修改参数和结构层,得到需要的墙类型!
public void newWalltype(string strNewWallTypeName, WallType oldwallType, WPF_BXCustomkeelPartition WPF_CustomKeel)
{
//复制模板墙类型
FilteredElementCollector fel = new FilteredElementCollector(Doc);
using (Transaction tran = new Transaction(Doc))
{
tran.Start(“复制类型”);
oldwallType.Duplicate(strNewWallTypeName);
tran.Commit();
}