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-api
1,065
questions
0
votes
1
answer
33
views
How to upload files to a bucket from Design Automation without zipping the folder?
I have a design automation bundle for Revit.
This code saves two different files (.json and .rvt) to the “result” folder.
My activity has the following parameters
Parameters Image
If I set the result ...
-2
votes
1
answer
14
views
How to get active object of revit application in windows application
I have to craete revit application for ifc export but withou creating pluddin or addin.I have to craete deskstop application . how can i do this?
do not open revit how can run in windows application ,...
0
votes
0
answers
27
views
Revit to NWC and NWD
I am trying to export revit model to NWC model and I have successfully done it. But only the thing now I am trying it further to convert nwc model into nwd model. For this I am applying the logic like ...
-1
votes
0
answers
18
views
Create Multi excel Table for Each Worksheet by C#
hope be well.
I have multiple quantity take-off and each quantity has a specific worksheet.
I faced error when I wanted to create the table for them The error was "Table name invalid"
the ...
1
vote
0
answers
50
views
Why would a parameter I just programmatically created be read-only?
I'm programmatically creating a shared parameter via the Revit API. I am specifying a GUID and doing this as part of an add-in I am maintaining. I have recently revamped the parameter code, and that's ...
2
votes
1
answer
57
views
Design Automation for Revit; reduce time of WorkItem process
I prepared Design Automation application that exports set of views to DWG files. WorkItem contains json file that has a list of standard views to export, but to extend application I need to show user ...
0
votes
1
answer
38
views
Migrating addin to Rvt2025 - WPF raises exception
I have successfully migrate my addin fron .NET Framework to .NET Core, except for WPF windows.
Every command that opens a WPF window raises an Exception "could not load file or assembly" on ...
0
votes
1
answer
39
views
Call a method in a bundle on Design Automation
The code to be included in the package and uploaded to DesignAutomation:
private void HandleDesignAutomationReadyEvent(object sender, DesignAutomationReadyEventArgs e)
{
if (...) // The flag I'm ...
0
votes
0
answers
20
views
How to check the View Templets item in the UI of TransferProjectStandards via user32.dll
in Revit i am trying to select the checkbox next to 'View Templates' in a ListBox of the TransferProjectStandards Dialog. I was able to implement the 'Check None' functionality, but I couldn't figure ...
1
vote
1
answer
48
views
Design Automation for Revit; file size error during upload to the bucket
During Design Automation for Revit WorkItem process, Revit model and all links should be upload to the Application bucket, it works well when I am testing lightweight Revit files (about 10Mb each), ...
0
votes
1
answer
66
views
How to Use PyRevit CLI to Run Python Scripts Without Opening Revit?
I'm currently working on automating some tasks using PyRevit CLI and the Revit API. My goal is to run Python scripts without actually opening the Revit GUI.
Specifically, I've written a simple script ...
1
vote
2
answers
49
views
Unable to execute script. Reports there's no open Revit Project
I'm creating a python script to run in the RevitPythonShell 2024.0.0.0 add-in for Revit which will look for duplicate Family/Type names of elements housed in differing Revit Worksets, perform a ...
1
vote
1
answer
45
views
How to isolate specific categories in a View?
I would like to create a view that only contains the elements of few given categories, I'm not sure what is the best way to achieve this. Examples I found are not really illustrating what I'm trying ...
0
votes
0
answers
14
views
Issue with Application Visualization in Revit
I developed an application using C# based on Revit. When I run the application from Visual Studio, it works perfectly. However, when I run the app from Revit, all the functionalities work except for ...
0
votes
1
answer
30
views
Can't unsubscribe from an event in Revit
I'm trying to set up the UI to automatically clear elements when I subscribe to an event DialogBoxShowing. I can't unsubscribe from it and the replacement of user actions continues even when the code ...