Questions tagged [revit-api]

Revit's API allows users to create customizations of the Autodesk Revit environment with tools that can greatly enhance end users' capabilities. The program is built around Microsoft's .NET Framework.

Revit's API allows users to create customize the environment with tools that can greatly enhance end users capabilities. The program is built around Microsoft's .NET Framework.

Resources:

Forums:

977 questions
1
vote
0 answers

Project Base Point & Survey Point in Revit 2020

I am trying to read Linked Project Base Point/Survey Point in Revit 2020 I am trying to get "E/W",'N/S', "Elev", 'Angle to True North' from BasePoint Class in Revit 2020. The same can be acquired from Revit 2019. ** Sample code for Revit 2019 to…
1
vote
0 answers

Cannot Update Topography Material

My Revit file has some topography overrides. There are overrides for the topography type as well. Now, when I change the material in the topography it does not update in the 3D view. Is there anything wrong with the override settings? When I…
Patt Mehta
  • 4,110
  • 1
  • 23
  • 47
1
vote
1 answer

Trying to show room information in Autodesk Forge / Bim360

Okay so, I'm trying to show room information and geometry from a Revit project on Forge. I've made the call to https://developer.api.autodesk.com/modelderivative/v2/designdata/jobs with Setting advanced/generateMasterViews field to true, yet, even…
1
vote
1 answer

How to exclude door sweep from bounding box using revit API

I have a revit file in which there are a few doors. When i try to extract the bounding box of the door then the sweep of the door is also included in the bounding box which i dont want. I just want the bounding box corresponding to the door itself.…
1
vote
1 answer

Initializing a Win. Form from Revit Push Buttons and Executing commands

Can anybody tell me how (if it is possible) to implement a class that I've already written pushing a button in a form that is showed when clicking a button in a Revit Addin Ribbon? Attached is the link to the image of what I've achieved so far. I'm…
DavidMena
  • 19
  • 6
1
vote
1 answer

Autodesk Revit Assembly

If I have geometry from some other source like Inventor how can I import it into Revit as an assembly? I do not want to import it as a family because currently using Revit 2022 it just imports the geoemerty as a "dumb" block and I cannot make any…
1
vote
1 answer

Getting access to a sheets Title block using python

Dynamo Script Within Dynamo I was able to adjust the title block per sheet but I was requested to simplify it into a button click using python only. I can find the sheets but I can not adjust the parameters per sheet. I believe this is because the…
1
vote
1 answer

Resetting the order in schedules

The goal of this macros (app) is to reset the order of elements inside of a schedule we have opened now. Order starts with a user chosen number. Numbers are stored inside every element's parameter that user can specify. We get IDs of elements by…
fysharp
  • 101
  • 7
1
vote
1 answer

How do I refer to an Area in my AreaPlan?

I am new to programming Revit-Apis and cannot finde a way to refer to my areas within my AreaPlans on a certain floor. How do I do that? Furthermore: How do I get the area of this certain Area and the rooms that lie within the area. Thanks in…
IliasM
  • 21
  • 1
1
vote
3 answers

Matching elements by their category

Once a category is selected we hit the button and the name of the category "goes into" this variable called "selected". Now, how to put inside of ElementCategoryFilter that variable containing the necessary category? selected category public void…
fysharp
  • 101
  • 7
1
vote
1 answer

Revit Getting/Setting values from a param

I need to get and set a new value for a bunch of params into a model in Revit, so Im trying to create an Addin for it, so I can get a JSON file and implement into the model. I Tried this code to get a test param, but it keeps returning null. I…
MackMag
  • 23
  • 4
1
vote
1 answer

Getting Rooms within my Area Plan, Revit API

I have created several AreaPlans in Revit and I need to get the rooms within those AreaPlans and sort them according to which AreaPlan they belong. I am using Revit 2021 and VisualStudio 2019 A Code-Example would be of great help. Thank you in…
IliasM
  • 21
  • 1
1
vote
1 answer

A Button needs to be clicked twice to close a Dialog

I am trying to run a simple code. I have created a Form with a ComboBox (DropDownStyle = DropDown), which is empty in the beginning, it's filled with two when the DropDown is opened. This Form also has 2 Buttons, one of them is the proceedButton…
1
vote
1 answer

Revit Dockable pane does not react for min width

I have dockable pane with DockPosition=Rigth and MinWidth=300. When pane is attached to Revit everything fine, but when i move it using mouse and DockPosition is changed to Floating , the panel do not react for MinWidth and change width to…
cowor12
  • 11
  • 1
1
vote
1 answer

Revit Addin getting information from model

I need a code that when I click on my Revit add-in button returns me the family of the model element that is selected. Anyone can help with this? I did some research in Autodesk University and I couldn't find something easy to understand that make…
MackMag
  • 23
  • 4