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
3
votes
2 answers

How can I get the Revit file version using the Revit API?

In the Revit API I know that I can get the version of the Revit instance that is currently running (ControlledApplication.VersionBuild,ControlledApplication.VersionName,ControlledApplication.VersionNumber). However, I would like to get the version…
skeletank
  • 2,880
  • 5
  • 43
  • 75
3
votes
5 answers

Revit API Code Unit Testing

Is it possible to create unit tests of my own Revit API code that interacts with a Revit DB model without having Revit running. If so, how might this be achieved.
sweetfa
  • 5,457
  • 2
  • 48
  • 62
3
votes
2 answers

Modifying a printers default settings from C#

Here's my situation: I'm developing a C# add-in for a 3rd party program This program (Revit) uses its own printing methods and exposes them through its API I am writing a printing utility that uses these methods to print to various locations,…
RodH257
  • 3,552
  • 5
  • 36
  • 46
3
votes
3 answers

Get human readable name for BuiltInParameterGroup enumeration values

Using the Revit API is there a way to get the human readable version of the BuiltInParameterGroup enumeration values (Dimensions, Materials and Finishes, etc)?
skeletank
  • 2,880
  • 5
  • 43
  • 75
2
votes
1 answer

Revit 2021 viewer in WPF application

I'm looking to integrate revit viewer in wpf C# application. Any reference with example will help.
2
votes
1 answer

Trying to create 2 lists of an array based on 2 indexes

Firstly I would like to say that the main principal of this question is not necessarily related to the revit API. I am trying to create a "path of travel line" which has to go from the furthest point in a room following the shortest way along the…
Dries
  • 33
  • 5
2
votes
1 answer

How to check if a dimension is applied to a parameter in the Revit API

Is there a way to use the Revit API to see if a dimension is used in a family parameter? Of the APIs, I have looked into the FamilyManager and FamilyParameter classes. I am also looking into the Dimension class that handles dimensions, but so far I…
itono
  • 21
  • 3
2
votes
0 answers

Create buttons in loop with different actions - Python

I am working on Dynamo for Revit. My code takes sheet numbers and other info, then creates labels and buttons for each IN element with a for loop. The GUI works fine and I have all the elements in place, but how do I tell each individual button to…
2
votes
1 answer

How to create square of walls via WPF in Revit python

I start learning pyRevit and here's the trouble. I want to create a WPF where I may enter values then Revit could would automatically construct a simple rectangular building. I have already create a WPF but I'm stuck in part where I need to connect…
John
  • 29
  • 2
2
votes
1 answer

wpf Access to 3rd party Themes and Skins via ResourceDictionary

I'm creating a WPF Revit Addin. For this I'd like to use some 3rd party controls for extra UI functionality and for their styles (see ModernWpf]) Within a 'normal' WPF application it all works fine: I add the library (nuget) and added the themes…
2
votes
2 answers

Result of function is returned without changing list items in if-statement

Thanks in advance for your input. I started learning Python today, because I want to define custom Python nodes in DynamoBIM (Revit) to be more flexible if there aren´t predefined / suitable nodes for my tasks in BIM. The PythonScript gets input…
Dorian Feyerer
  • 258
  • 5
  • 14
2
votes
1 answer

When working with BIM 360, what is the best location to add the materials to improve performance?

-Company server -BIM 360 folder -Autodesk connector -or other option centralized in the cloud
Josh Radle
  • 23
  • 2
2
votes
1 answer

Revit Design Automation Control Open Process with Dynamic File Name

We have a design automation application for Revit that handles models from BIM 360 and we would like to open models using our own process so we can modify what worksets are opened, etc. We have found the link at…
sfaust
  • 2,089
  • 28
  • 54
2
votes
1 answer

Autodesk Forge tutorials for Model Check App

Hi everyone I've started to learn about Autodesk Forge and I'm a beginner in coding. I've been able to put together the Model 3D Viewer following this tutorial: https://www.youtube.com/watch?v=8FMwgJcRHz8 My current tusk is: to build a WebApp on…
2
votes
1 answer

Windows Form font not shown properly in Revit External Application

I am developing a Revit ribbon with some buttons and implemented a windows form in the same solution to show messages regarding the license verification of the ribbon and other stuff. I am using Bahnschrift SemiBold SemiConden font in this windows…
angelrps
  • 77
  • 7
1 2
3
64 65