![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Revit二次开发
MonkeyBananas
这个作者很懒,什么都没留下…
展开
-
Revit二次开发 线根据方向排序
/// <summary> /// 线排序,根据参数二进行排序 /// </summary> /// <param name="lines">线集合</param> /// <param name="dir">排序方向</param> /// <returns></returns> public st...原创 2021-02-22 16:21:05 · 605 阅读 · 0 评论 -
Revit二次开发 添加、获取墙核心边界信息
//创建结构层(厚度、功能、材质)IList<CompoundStructureLayer> layers = new List<CompoundStructureLayer>();//创建一条核心边界CompoundStructureLayerlayerSurfaceThickness = newCompoundStructureLayer(thickness, MaterialFunctionAssignment.Finish1, ElementId.InvalidE...原创 2020-07-14 13:35:53 · 1520 阅读 · 0 评论 -
Revit二次开发 把不围合的CurveLoop重组为围合的CurveLoop
public CurveLoop MakeLineClose(CurveLoop curves){ try { CurveLoop newCurveLoop = new CurveLoop(); for(int i = i; i < curves.Count(); i++) { Line fLine = curves.ElementAt(i - 1) as Line; Line sLin.原创 2020-06-10 17:07:10 · 1891 阅读 · 0 评论 -
Revit二次开发 根据ElementId快速删除Element
public void DelElementByIds(List<ElementId> delIds){ Selection selection = _uiApp.ActiveUIDocument.Selection; selection.SetElementIds(delIds);//选中要删除Element RevitCommandId commandId = RevitCommandId.LookupPostableCommandId(PostableComma.原创 2020-05-25 11:17:51 · 862 阅读 · 0 评论 -
Revit二次开发 用户Esc取消异常处理
try{ //Code}catch(Exception ex){ if(!(ex is Autodesk.Revit.Exceptions.OperationCanceledException))//用户取消异常,不抛出异常信息 { throw ex; }}原创 2020-03-26 14:11:08 · 920 阅读 · 0 评论