revit

Same code to create parameters in Revit 2015 + 2016

浪尽此生 提交于 2020-01-06 20:05:02
问题 So the ExternalDefinitionCreationOptions had a spelling error in the Revit 2015 API that was corrected in the 2016 API. I try to make my app as compatible as possible with the current version + previous, but this time I'm not even able to compile it since I can only reference one of the two API DLL's, and the ExternalDefinitionCreationOptions plays a big role in the process. The code is the following: private static Definition GetSimpleParameterDefinition(UIApplication uiApp, Document doc,

Is there a automatic solution for the room seperator function?

ε祈祈猫儿з 提交于 2020-01-06 07:20:30
问题 Currently I am working on a project to transform a BIM file of a building into 3D spaces of rooms. Unfortunately, it is not working out as planned. The doors and windows which are in this IFC file are missing the checkbox "Room Bounding". Because of this I am not able to create rooms for the reason that windows and doors are seen as holes. How do I add the option "Room bounding checkbox" to the Doors and windows? 回答1: In Revit, doors and windows are hosted by walls and form part of the walls

Revit API - Possible NewtonSoft.Json conflict

∥☆過路亽.° 提交于 2020-01-03 01:51:29
问题 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

Autodesk Revit 2016 官方简体中文版

安稳与你 提交于 2019-12-26 17:08:00
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Autodesk Revit 2016是欧特克旗下的一款三维建筑信息模型建模软件,这款软件包括了用来进行建筑设计、MEP 和结构工程以及施工的功能。2016版本在后台更新数据方面使用了另一个CPU来进行数据计算大大提高了模型更新速度,使用更加流畅了;新版本还能更改图形背景颜色,而不再单单只有黑白两色,这下长时间盯着Revit截面也不会再觉得眼酸疲劳啦。 功能介绍: (1)Revit 2016的三维透视图(相机三维视图)中,在ViewCube上点右键,可以看到多出了1个“切换到平行三维视图”命令。 (2)“三维透视图”中可以“编辑族”,也可以使用“移动”和“对齐”命令。 (3)“三维透视图”切换到“平行透视图”后,可以使用绝大部分“修改”命令,如移动、复制、旋转、对齐、偏移、镜像、阵列等,还可以“编辑族”、“创建类似实例”。 (4)详细操作见下面的图文。 1、三维透视图中,在ViewCube上点右键: (1)Revit 2014或2015的右键菜单 (2)Revit 2016的右键菜单:多出了1个“切换到平行三维视图”命令 2、Revit 2016的“三维透视图”切换到“平行透视图”后,在ViewCube上点右键,可以看到多出了1个“切换到透视三维视图”命令。 3、Revit 2016在“三维透视图”中可以

Revit: Modifying is forbidden because the document has no open transaction

梦想的初衷 提交于 2019-12-25 08:48:10
问题 Modifying is forbidden because the document has no open transaction. The document has no open transaction. In Revit Document. 回答1: You have 2 options: change the TransactionMode to Automatic at the class attribute [Transaction(TransactionMode.Automatic)] open a transaction within your command Transaction tr = new Transaction(commandData.Application.ActiveUIDocument.Document); tr.Start("Command name here"); // your code tr.Commit(); 回答2: Since you tagged this as revitpythonshell : try:

Revit to Pdf Conversion

徘徊边缘 提交于 2019-12-25 08:14:03
问题 I am trying to automate the process of pdf printing in Revit 2017 using Revit API with Idling event handler. I am opening the revit document using OpenDocumentFile method and not using ActiveUIDocument anywhere. This process is generating Invalid Operation Exception. I am not sure why is it giving the exception or whether it is allowed using Revit API. Please help. Thanks. Journal Output: ' 1:< 0 <-pushSettingsIntoDriver ' C 27-Sep-2016 14:45:22.641; 1:< ExportToRequestedFormat() : Pdf Print

Revit Pick element from WinForm

懵懂的女人 提交于 2019-12-24 08:28:30
问题 I'm trying to pick an object in Revit when clicking a button without closing the Form. the problem is when i click the button i can't interact with Revit. here's the main code calling the Form and passing Revit as owner. IWin32Window revit_window = new JtWindowHandle(ComponentManager.ApplicationWindow); Process process = Process.GetCurrentProcess(); IntPtr h = process.MainWindowHandle; form.ShowDialog(revit_window); public class JtWindowHandle : IWin32Window { IntPtr _hwnd; public

Revit阵列工具

99封情书 提交于 2019-12-23 10:28:35
利用Revit阵列工具可以快速创建类似的构件,比如创建等距轴线,等距标高等,可以沿直线创建阵列,或者弧线创建环形阵列,激活“修改--阵列”命令,在属性窗格中选择线性阵列,然后指定以阵列中第二个图元或者最后一个图元为的位置,线性阵列中就是指定阵列组中各个构件的间距,环形阵列中就是指定构件间的夹角,在环形阵列中应该事先指定阵列中心点。可以给阵列添加参数,比如给线性阵列个数添加“阵列个数”参数,给环形阵列添加“阵列个数”和“阵列半径”参数,控制阵列的大小,这一个技巧在制作某些Revit族中非常有用,比如制作百叶窗族的时候,就可以添加一个“百叶个数”的参数,让其根据百叶窗的大小自动调整其百叶个数;再比如在制作一些风口族时也可依据这些参数自动调整风口栅格数量。 上图为LWP型立式人防油网过滤器设备族,该族中使用了嵌套族,其内部有一个油网的“子族”,在该子族中的油网就是利用线性阵列创建的,因为该油网为固定型号,因此没有添加参数,在过滤器族中对“子族”进行了线性阵列,并添加阵列个数参数,可以指定油网“子族”的个数,其表现就是选择不同的型号的时候,其”油网“的个数不同,因为该族是基于墙的设备族,墙洞大小也随着”油网“数量的多少而增减。 来源: https://www.cnblogs.com/bimgoo/archive/2013/06/09/3129575.html

System.BadImageFormatException An attempt was made to load a program with an incorrect format

ε祈祈猫儿з 提交于 2019-12-17 10:38:34
问题 I'm writing a plug-in for another program that is based on a public .NET API. Typically these plugins are made by creating a class library DLL that references the API assembly. Then a command class is created by inheriting from a base command class in the API assembly. The application is then set to reference the plug-in DLL file, and is then also responsible for actually firing up the custom command class when the user requests it. However, now I'm trying to automate some code generation

Revit Transform Matrix from point cloud to revit link

浪子不回头ぞ 提交于 2019-12-11 16:03:40
问题 We insert a point cloud in Revit and have to move and rotate it in several axles to get a good world alignment. We then need to apply the same transforms to a Revit MEP link that contains edgwise piping. I have acquired the 3x4 matrix from the point cloud in revit, I would like to apply that to the revit mep link so that they are in alignment. I have successfully applied the translation portion of the transform, I am stuck on the rotation portion. Could someone please assist with this.