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 盛书伟 阅读(3) 评论(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 盛书伟 阅读(2) 评论(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 盛书伟 阅读(3) 评论(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)

导航