miki969696

2025年10月31日

revit api获取excursion 拉伸体的轮廓和平面sketchplane GeometryCreationUtilities

摘要: public void GetSketchFromExtrusion() { Document doc = this.ActiveUIDocument.Document; Extrusion extrusion = doc.GetElement(new ElementId(3388)) as Ext 阅读全文

posted @ 2025-10-31 01:55 盛书伟 阅读(1) 评论(0) 推荐(0)

revit 创建sketchplane

摘要: sketchplane在创建某些图元时候可以用到 public void CreateSketchPlaneByPlane() { Document doc = this.ActiveUIDocument.Document; using(Transaction trans = new Transac 阅读全文

posted @ 2025-10-31 01:53 盛书伟 阅读(2) 评论(0) 推荐(0)

revit api创建模型线

摘要: public void CreateModelCurve() { Document doc = this.ActiveUIDocument.Document; // 在族文档中找到名字为"Ref. Level"的标高 FilteredElementCollector collector = new  阅读全文

posted @ 2025-10-31 01:52 盛书伟 阅读(4) 评论(0) 推荐(0)

revit api创建参考线

摘要: 参考线可以用modelcurve转化而来 public void ChangeModelCurveToReferenceLine() { Document doc = this.ActiveUIDocument.Document; ModelCurve modelCurve = doc.GetEle 阅读全文

posted @ 2025-10-31 01:51 盛书伟 阅读(1) 评论(0) 推荐(0)

revit api创建参考平面

摘要: public void CreatReferencePlane() { Document doc = this.ActiveUIDocument.Document; if(!doc.IsFamilyDocument) return; using(Transaction transaction = n 阅读全文

posted @ 2025-10-31 01:48 盛书伟 阅读(2) 评论(0) 推荐(0)

图元编辑 移动 旋转 镜像等

摘要: 编辑1 Document projectDoc = ActiveUIDocument.Document; using(Transaction moveColumnTran = new Transaction(projectDoc, "Move a new column to the new plac 阅读全文

posted @ 2025-10-31 01:42 盛书伟 阅读(3) 评论(0) 推荐(0)

revit api 内置族类型 walltype

摘要: 复制墙类型 Wall wall = RevitDoc.GetElement(new ElementId(185521)) as Wall; WallType wallType = wall.WallType; ElementType duplicatedWallType = wallType.Dup 阅读全文

posted @ 2025-10-31 01:27 盛书伟 阅读(1) 评论(0) 推荐(0)

revit api族文件图元编辑 familyitem factory

摘要: 创建拉伸实体 //创建族文档 Document familyDoc = RevitApp.NewFamilyDocument(@"C:\ProgramData\Autodesk\RVT 2014\Family Templates\Chinese\公制常规模型.rft"); using (Transa 阅读全文

posted @ 2025-10-31 01:25 盛书伟 阅读(4) 评论(0) 推荐(0)

revit api 加载族文件+放置族实例 创建门图元

摘要: string doorTypeName = "0762 x 2032 mm"; FamilySymbol doorType = null; // 在文档中找到名字为"0762 x 2032 mm"的门类型 ElementFilter doorCategoryFilter = new ElementC 阅读全文

posted @ 2025-10-31 01:23 盛书伟 阅读(2) 评论(0) 推荐(0)

revit api共享参数

摘要: 获取共享参数 // 打开共享参数文件 DefinitionFile definitionFile = RevitApp.OpenSharedParameterFile(); // 获取参数组的集合 DefinitionGroups groups = definitionFile.Groups; fo 阅读全文

posted @ 2025-10-31 01:10 盛书伟 阅读(2) 评论(0) 推荐(0)

revit 设置参数和获取参数值

摘要: 设置参数 // 获取长度参数L Parameter paramL = selectedElement.LookupParameter("L"); if (paramL == null) { message = "所选图元不包含参数L"; trans.RollBack(); return Result 阅读全文

posted @ 2025-10-31 00:56 盛书伟 阅读(3) 评论(0) 推荐(0)

revit api 过滤器获取元素

摘要: 通过过滤器取到元素 using System; using Autodesk.Revit.UI; using Autodesk.Revit.DB; using Autodesk.Revit.UI.Selection; using System.Collections.Generic; namespa 阅读全文

posted @ 2025-10-31 00:51 盛书伟 阅读(2) 评论(0) 推荐(0)

revit api 事务和事务组

摘要: 使用事务创建元素 public void CreatingSketch(UIApplication uiApplication) { Document document = uiApplication.ActiveUIDocument.Document; ApplicationServices.Ap 阅读全文

posted @ 2025-10-31 00:49 盛书伟 阅读(3) 评论(0) 推荐(0)

导航