Questions tagged [revit]

Revit is a BIM (Building Information Modeling) software tool used by architects, engineers, etc.

Revit is a BIM (Building Information Modeling) software tool for Windows OS used by architects, engineers, etc. It was created by Revit Technologies Inc. and then purchased by Autodesk Inc. in 2002. It has a .NET API that can be used to interact with the UI as well as the underlying objects inside of project and family files.

Resources

The Building Coder

529 questions
1
vote
1 answer

Revit API. Is there any way to retrieve column name of selected cell in a schedule?

I`m working on c# for Revit 2019. I am trying to change value of selected cells in a schedule by changing parameter of a certain name. And it's work fine, but now I need to change parameter depends on selected column name in a table. Example of…
1
vote
1 answer

Phase Views in manifest after RVT model translation, how to detect or suppress?

We have a Revit model where we have configured a single 3D View in Publish Settings. We published that model to BIM 360 and are using Forge to extract the list of 3D Views. We notice that after the model is translated, the only views available in…
1
vote
1 answer

2d Sheets in Forge Viewer

We are showing Autodesk Revit models in Forge Viewer that have 3d views and 2d views. However, only the 3d view is showing in the Forge Viewer and there is no button available for us to navigate to the 2d view. Do we need to add an extension to…
1
vote
1 answer

Exporting ifc file from revit file in Forge using specific settings

Looking up online I only found a way to export a Revit file to IFC using the settings inside the Revit File already. Is there a way to export an ifc file from a Revit model using a specific settings (not the settings inside the Revit model)? (For…
Razyo
  • 39
  • 6
1
vote
2 answers

TextNoteType text_size minimal value

I am writing a revit pluging. I need to change the text_size of a textnotetype inside a viewplan, following a user input. the textnotetype height has limited lo=wer and upper values. I want to control the user input to respect this limits and avoid…
LucVallot
  • 11
  • 1
1
vote
1 answer

Revit API - No Space Tags family is loaded in the project

How can I add Space Tags family using only API? I'm trying use doc.Create.NewSpaces2(level, phase, view); (https://www.revitapidocs.com/2019/94b4e479-2301-2e78-6201-5bb5614ed796.htm) in my project, but I'm getting error "No Space Tags family is…
Chytry
  • 367
  • 1
  • 13
1
vote
2 answers

Open Revit BIM360 Model via command line

Has anyone successfully opened a cloud model via the command line? I can open a non-cloud model by passing the file path, but I'm not sure how you would open something non-local.
chris1out
  • 176
  • 4
1
vote
1 answer

How to place element on wall via revit api

I want to place some elements on a wall one after the other. I am placing a few elements on a wall in my model. I was able to place the first element but have no clue how to place the 2nd and consecutive ones. I have uploaded the source code and…
Saurabh Agrawal
  • 150
  • 1
  • 13
1
vote
1 answer

PickObjects with ISelectionFilter will not allow me to select anything, why?

I am trying to enable selecting one single space for use in Revit MEP 2019 by using the GUI and store the selection for further use in scripts. The code is written in pyRevit. The script runs both from the shell and from the addin button, but when…
1
vote
2 answers

How to register dockable panel programmatically in revit api c#

I am working on a project that requires me to launch a plugin in a dockable panel, I followed the example here. I could achieve this, but I was wondering if the registering process can be done programmatically. If anyone has achieved this, can you…
JPais
  • 115
  • 2
  • 14
1
vote
2 answers

How to get family name of System family in Revit API?

I want to get a family name of "System family instance" such as wall, roof etc. I know that how to get a family name of Family instance, but I cannot figure out if the element is "System Family instance". Thanks. (*Element e is the element that I…
Pooh
  • 71
  • 1
  • 5
1
vote
1 answer

Revit.ini file - MissingSectionHeaderError: File contains no section headers. file: Revit.ini, line: 1 '\xff\xfe\r\x00\n'

im trying to edit my Revit.ini File with python however I continue getting the error below. I've been banging my head against the wall for the better portion of the day. Any help is appreciated in this. I've been working with ConfigParser on python…
Cflux
  • 1,423
  • 3
  • 19
  • 39
1
vote
1 answer

PyRevit / RevitPythonShell Custom Tools - How to disable Alt-Click "View Code" functionality?

I've begun developing some tools for my firm using RPS and thus would like to know how to disable the alt-click "view code" functionality as shown in PyRevit. I've gone through the documentation and scoured the web but I haven't seen any kind of…
Cflux
  • 1,423
  • 3
  • 19
  • 39
1
vote
1 answer

RevitPythonShell - IronPython.Runtime.UnboundNameException: global name 'doc' is not defined

im writing my first button in RPS but it seems like the init file is not being read on startup or when the button is clicked. this is the error I'm getting when trying to follow the tutorials provided on…
Cflux
  • 1,423
  • 3
  • 19
  • 39
1
vote
1 answer

How to get CSV to work in in RevitPythonShell?

Has anyone figured out how to get CSV (or any other package) to work in RevitPythonShell? I've only been able to get Excel from Interop to work. When I try running csv in RPS, the terminal executes and shows no error or any kind of feed back, and…
Cflux
  • 1,423
  • 3
  • 19
  • 39