revit

Dynamo-【NO.03】Revit交互节点

时光毁灭记忆、已成空白 提交于 2019-12-11 12:34:30
Dynamo的Revit交互 ····本文主要对Dynamo中涉及到数据的节点进行了总结整理,笔记整理自[姑娘课堂]的Dynamo教程,笔记原格式为OneNote格式,如有需要可以按照下方链接下载OneNote文件与PDF文件,如果链接失效或者笔记中有错漏部位请私信联系,看到后会回复。 ····百度网盘地址:https://pan.baidu.com/s/1Os-OlxY41H0Xo8mMBfZIcg ····本文内容目录 ········一、选择 ········二、标高和轴网 ········三、墙体和楼板 ········四、放置族Revit.Element.FamilyInstance ········五、自适应族Revit.Element.AdaptiveComponent ········六、内建模型Revit.Elements.DirectShape ········七、幕墙与嵌板Revit.Elements.CurtainPanel ········八、图元Revit.Elements.Element ········九、体量Revit.Elements ········十、日光Revit.Elements.SunSettings ········十一、地形Revit.Elements.Topography ········十二、模型文字Revit.Elements

Revit: Set type parameter in linked models

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 05:52:14
问题 Our Revit Add-In lets the user browse and set type parameters, including those in linked models. It worked fine in Revit 2011 and earlier, but in Revit 2012 and 2013 we can no longer set these. When constructing the transaction on the linked document I get: "Autodesk.Revit.Exceptions.ArguementException: Document is a linked file. Transactions can only be used in primary documents (projects or families.)" OK, so we can't use transactions on linked models. So I tried setting the parameter

Revit API: How to create Element Keynote for a wall and Material Keynote?

天涯浪子 提交于 2019-12-11 01:49:50
问题 I'm trying to create Element Keynote for a wall and Material Keynote for it's materials (to make it like in this image bit I'm completely stuck with it. I tried to create a tag how it was shown in this blog post: http://thebuildingcoder.typepad.com/blog/2010/06/set-tag-type.html But I can't change a keynote tag to OST_KeynoteTags and to associate it with wall or material: FamilySymbol keynoteTagType = GetFirstFamilySymbol(doc, BuiltInCategory.OST_KeynoteTags); IndependentTag newTag = doc

pyRevit

核能气质少年 提交于 2019-12-09 04:19:37
pyRevit 是 针对AutodeskRevit® 的快速应用开发(RAD)环境。 它可以帮助您在Revit环境中使用任何一种你熟悉的编程语言来调用Revit API ,从而快速搭建出你所要的自动化功能以及插件。 它还附带了一系列功能强大的工具,可以展示其作为开发环境的功能。 下载并安装pyRevit,启动Revit,并注意包含这些工具的新** pyRevit **选项卡。 pyRevit还附带了一个方便的CLI实用程序,用于自定义配置和部署工具,以及一个遥测服务器,用于监控整个团队的pyRevit使用情况。 pyRevit官网 pyRevit github网址 官方学习视频 学习视频1 来源: CSDN 作者: 专治BrIM 链接: https://blog.csdn.net/weixin_40626630/article/details/100728996

Revit API - Possible NewtonSoft.Json conflict

爷,独闯天下 提交于 2019-12-08 12:47:28
I'm trying to create an extension that goes to the cloud and retrieve data, simple request. It works flawless when using the Add-In Manager, but when I distribute to other users, there seems to be a conflict with the version of the NewtonSoft.Json I'm using (7.0.1) and the version I found in Revit Program Files (5.0.8). Full error message is: [Window Title] Command Failure for External Command [Main Instruction] Revit could not complete the external command. Contact the provider for assistance. Information they provided to Revit about their identity: icubY. [Expanded Information] Revit

Obtaining room/area information from Forge api

巧了我就是萌 提交于 2019-12-08 12:41:37
问题 I need to get room/area objects with the hierarchy of linked objects from the Revit model via Forge . Right now I am using this project as a starting point. Unfortunately, the room information is lost. As far as I understand, it is removed during the translation process. There are some workarounds like this one, but it doesn't seem to work for our case. Is there any straightforward way to retrieve room information from rvt in Forge ? 回答1: Although there is not directly way to get room

RevitAPI 隐藏UI读取Revit文件

天涯浪子 提交于 2019-12-05 13:37:41
1.1. 新建一个控制台项目 1.2. 添加Revit API引用 我们找到revit安装目录下的这两个DLL添加到项目引用中 RevitNET.dll RevitAPI.dll 修改属性:复制本地: FALSE 1.3. 为MAIN函数添加STAThread特性 [STAThread]//一定要有 static void Main(string[] args) { } 如果未添加则报错: 异常:SEHException: 外部组件发生异常。 1.4. 修改控制台项目为64位 由于revit为64位程序,所以我们的控制台程序一定要为64位才可正常使用。 1.5. 添加封装好的revitContext类 可以直接使用,可以根据自己需要去修改,其中的Application就是revit主要的 public class RevitContext { #region private fields Product _revitProduct; private static bool isLoadEnv = false;//是否已添加过环境变量 #endregion #region public fields /// <summary> /// revit程序目录 /// </summary> public static string RevitPath; #endregion #region

【Revit API】墙体分割

匿名 (未验证) 提交于 2019-12-02 22:10:10
Revit中没有分割墙体的直接方法,一般采用调整原墙体的长度,再复制自身,调整复制体的长度。话不多说,直接上代码 public static void WallCopy(Document doc, XYZ sp, XYZ ep, Element wall) { XYZ origin = sp; List<ElementId> wallcopiesID = new List<ElementId>(); wallcopiesID = ElementTransformUtils.CopyElement(doc, wall.Id, origin) as List<ElementId>; Wall wallcopy = doc.GetElement(wallcopiesID[0]) as Wall; var newCurve = Line.CreateBound(sp, ep) as Curve; (wallcopy.Location as LocationCurve).Curve = newCurve; } 文章来源: 【Revit API】墙体分割