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

Model Derivative API revit to dwg

I wanted to convert the Revit file to DWG file, so I created a job using the Model Derivative API, When I check the Manifest, Progress will succeed at 0%. The following json was used to create the job { "input" : { "urn" :…
2
votes
1 answer

Revit API get bounding box around door geometry (excluding swing)

So when i get a bounding box of a door element in dynamo it gives me a bounding box including the door swing. EX: and when i get the bounding box of a door geometry it gives me the bounding box excluding the door swing EX: NOW USING C#!!!! so i…
2
votes
0 answers

Unable to read schema from Extensible Storage using Design Automation for Revit

Do I have the possibility to read Extensible Storage from Design Automation? Because when I use the same dll and the same addin file like in desktop Revit, but I am not able to read schema. The Access level set to the vendor and I add to addin file…
2
votes
3 answers

ExtensibleStorage using RevitPythonShell

I am trying to take advantage of ExtensibleStorage in the Revit API. I'm trying to store an Array in a ArrayField. I think maybe my errors are due to the IronPython interface, but maybe someone has done this successfully? I know that the object to…
Kyrre
  • 85
  • 1
  • 5
2
votes
1 answer

How to activate 3d view and save the revit model in design automation api for Revit

I am working on a task where I need to accept a template file (.rte) as input and save the resultant revit file in 3d view. I understand that to activate 3d view, we need UIDocument which is not available when we work in DesignAutomation API. In an…
JPais
  • 115
  • 2
  • 14
2
votes
1 answer

Export Schedules from Revit Model using Design Automation API

I have found a plug-in to manually export schedules (rebar, production bom, material lists) from Revit models. However, our company is looking to automate this and take out the human required element of exporting these schedules. I have not, so…
2
votes
1 answer

Google.Apis.Auth 1.46.0.0 is installed but then being asked for multiple versions

I am able to get Firestore access through winforms by itself and it works. however, if I try to access Firestore through an external command, I get an error: System.IO.FileNotFoundException: 'Could not load file or assembly 'Google.Apis.Auth,…
Cflux
  • 1,423
  • 3
  • 19
  • 39
2
votes
1 answer

How to save Revit file in BIM 360 as cloud model using Forge Design Automation API?

I would like to upload my Revit file to BIM 360, and work on it as a cloud model. I am using Design Automation API in order to do that. For some reason I get an error that says: "Could not obtain entitlement server" This is my AppBundle code: public…
2
votes
1 answer

Revit 2020 API - Family Document active view returning null after Family document is open and activated

I'm trying to get the active view of my family's document but it returns null. In Revit 2019, it would always return a value however I've recently switched to Revit 2020 and it seems to be giving me an issue. Has anyone else run into this yet and…
Cflux
  • 1,423
  • 3
  • 19
  • 39
2
votes
2 answers

Logging unhandled exceptions with Sentry in C#

I'm writing a .NET application that is an "add-in" to the Autodesk Revit program. I want to use Sentry in order to log and view unhandled exceptions in general. From my understanding, the following code should capture an exception and send it to my…
2
votes
1 answer

Slow first HTTP request with HttpWebRequest

So I'm trying to use HttpWebRequest in my C# plugin for Revit(BIM software), to send a request to my API. But every time I try this, it takes way longer than the request would take in Chrome/Firefox/Postman. If I send my request with Postman, it…
Martijn
  • 141
  • 1
  • 8
2
votes
4 answers

Is it possible to load new Cloud (BIM 360) links in a Revit model either through the Revit API or FORGE API?

I have a two-part WPF App and Revit Addin that runs a series of routines to create and activate a new BIM 360 project via the FORGE BIM 360 API, launches Revit and creates and sets up a collection of Revit models from a "seed" Revit model. The…
2
votes
1 answer

RevitAPI: How can I change a family's part type?

I am trying to change a family's part type via Revit's API after changing the family category. I can retrieve the corresponding parameter and set its value, but (though the transaction is successfully committed) the part type is not changed. Since…
Duderino
  • 73
  • 7
2
votes
3 answers

How to import Revit and pyRevit librairies with PyCharm?

This is my very first question here, hope won't be my last. As I already use some answers from a lot of people, I would like to start by thanking all of you. Context : I'm developing a module for Revit, and for this, I'm using pyRevit to exchange…
Speculoos
  • 23
  • 5
2
votes
1 answer

Revit ribbonpanel pushbutton with Bitmap Image without RevitPythonShell or C# (ironpython only)?

I am an architect (real one, not software architect :) ) experimenting a bit with Revit API and introducing myself into coding world. I have done a part with C# but switched to Python with hope that initial steps will go faster this way. To get…
darkhitect
  • 55
  • 1
  • 6