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
1 answer

Filling list or array to export element names to excel

The goal is to fill excel cells with elements names. Using EPPlus. _elementsDB gives just "Autodesk.Revit.DB.Wall". int col = 1; for ( int row=2; row < _elementsDB.Count; row++ ) { ws.Cells[row, col].Value = _elementsDB; } Tying to…
fysharp
  • 101
  • 7
1
vote
0 answers

Line is too short - error in Revit API but works manually on Revit UI

I am working on a task where I need to update some parameters in a loop for a pipe fitting model but the issue is that I am getting the below UI when I commit the transaction. The weird part is that, I am adding parameters in a loop, and only…
JPais
  • 115
  • 2
  • 14
1
vote
1 answer

Revit Python Shell without a project open

Trying to run the NewProjectDocument command from Revit API when no project is open but I am getting this error. It seems to work fine when a project is open. Any suggestions? RPS Error
ftroshani
  • 11
  • 1
1
vote
0 answers

Creating a checkbox column in Objectlistview with Revit

I am trying to create a list of sheets in Revit using the ObjectListView control using vb.net API. I have managed to use the column aspectgetter and aspect putter to create delegates that get the parameter values for various parameters in the sheet…
1
vote
3 answers

How to find cloud Item id of a Revit model?

In our solution we need a reference between a Revit model and its presence in the cloud (BIM 360/Autodesk Construction Cloud). In Revit we open a cloud model or save a model to the cloud (Save As cloud model). The rvt-file obviously "knows" where it…
1
vote
1 answer

How do I get all parameters and their value in Revit through C#?

public IList GetAllParameters(Reference reference, Document doc, IList elementIds) { Element element = SelectElement(doc, reference); ParameterSet pSet = element.Parameters; IList
user16687043
1
vote
1 answer

Create view that selects from identical tables from all databases on the server and can handle any time a new database is added to the server

I have a system that takes in Revit models and loads all the data in the model to a 2016 SQL Server. Unfortunately, the way the system works it created a new database for each model that is loaded. All the databases start with an identical schema…
davidjay43
  • 15
  • 4
1
vote
1 answer

Select category of elements

Plugin combines selected parameters of elements belonging to a certain category. Instead of having a build-in category in the plugin, how to let a user choose one? 01 02 List stringParametersForComboBox4 = new List { …
fysharp
  • 101
  • 7
1
vote
1 answer

Write a file location with & char in XML for the Revit-BIM Interoperability tools

Trying to write the XML to go to a file path that not only has spaces it has an & in the title. I have asked to change this folder path but unfortunately, this is not doable.. apparently. I need to be able to write the path with the & in it. Is…
1
vote
1 answer

How to assign parameters with angle in Dimension built-in group in Revit Family using Revit API

I am working on a project where I have to assign angle parameters to Dimension built-in group in Revit API c# Here the angles are available in degrees as shown below When I set the value in degree (say 11.5 degree) directly I get an error which…
JPais
  • 115
  • 2
  • 14
1
vote
1 answer

Revit Addin Template2020

I used the Revit Add-In Template but when I run the application I get this error. Do you know why I am getting this error? the error I get is Revit cannot run ExternalApplication. do you know why it cannot run the External Application? The Error…
1
vote
1 answer

How to Ignore the last cell with data in an excel formula

Good morning everyone! This is my first question here. I work with Revit and I am trying to organize a Keynote that should look something like this: For this, I need to use a Txt Tab-delimited file, which is based on an excel file and define (see…
1
vote
0 answers

c# How to Intercept "Save Print Output As" dialog in Revit

I am trying to intercept the "Save Print Output As" dialog in Revit so I can programmatically insert a path and file name. This dialog pops up every time for every view or sheet that is printed when printed separately or only once if a combined…
Cflux
  • 1,423
  • 3
  • 19
  • 39
1
vote
1 answer

How can we ensure that the thermal transmittance takes into account the properties of the thermal asset assigned to the material?

Steps to reproduce the issue (Using Revit 2021.1.3) Create materials through Revit API and assign them a thermal asset: Assign material to a wall layer See that thermal conductivity is filled but resistance is still 0: Explored solution Manual…
Cyril Waechter
  • 517
  • 4
  • 16
1
vote
1 answer

Parent categories

I am wondering about the following: There is a category called Mass Walls, this category has a ParentCategory: Mass The category Mass has SubCategories. But in that list you don't see: Mass Walls What kind of Categories is: Mass Walls because it…
Daniel
  • 25
  • 5