1,605 questions
67
votes
9
answers
160k
views
System.BadImageFormatException An attempt was made to load a program with an incorrect format
I'm writing a plug-in for another program that is based on a public .NET API. Typically these plugins are made by creating a class library DLL that references the API assembly. Then a command class is ...
17
votes
14
answers
18k
views
Could not load file or assembly 'Xceed.Wpf.Toolkit
I'm developing an add-in for another application, Autodesk Revit, which is built as a separate DLL class library. I'm trying to use the Wpf Tool Kit Property grid in one of my WPF windows. The ...
10
votes
3
answers
5k
views
Can I make the default AppDomain use shadow copies of certain assemblies?
A short explanation of why I want to do this:
I am busy writing a plugin for Autodesk Revit Architecture 2010. Testing my plugin code is extremly cumbersome, as I have to restart Autodesk for each ...
6
votes
3
answers
2k
views
Accessing Revit API from outside Revit
I've used RevitPythonShell and Dynamo, but would like to use my existing Python IDE (Eclipse) where I have my configuration for logging, debugging, GitHub integration, etc.
I'm comfortable with ...
6
votes
1
answer
3k
views
create and assign subcategories in revit using python
I have a question for some of you who are familiar with the Revit API and python:
I’ve been using the spring nodes package in dynamo to create a rather large series of freeform objects each in their ...
5
votes
2
answers
3k
views
Prompt user to answer boolean choice using Revit API in C#
I created a Revit plugin in C# that allow users totally new to 3D technology to choose a family, and insert it in their project. But right now the user does not have the choice between placing an ...
5
votes
2
answers
3k
views
Is there a cloud API to extract data from a Revit model?
Let's say I want to create a cloud-based service that can connect to a Revit Server and fetch a model data, process it, and return some useful information to a user in a web-based interface. Then the ...
4
votes
5
answers
3k
views
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.
4
votes
2
answers
5k
views
Revit API. How can I get bounding box for several elements?
I need to find an outline for many elements (>100'000 items). Target elements come from a FilteredElementCollector. As usual I'm looking for the fastest possible way.
For now I tried to iterate ...
4
votes
0
answers
224
views
How to override MessageBox Help Button URL?
I'm developing a Revit Plug-in. I want the MessageBox Help Button to go to a link on my website. However, no matter what path I put in the messagebox arguments, it always just defaults to the link ...
4
votes
1
answer
1k
views
Revit API 2013 Document changed after Sync or Reload does not see newly added or changed elements
I have a problem working with a central file model and two local files on two different machines. When I add an element on one machine, do a sync and then reload on the other machine, the API does not ...
3
votes
3
answers
1k
views
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)?
3
votes
1
answer
2k
views
pyRevit WPF non-modal trouble
So I'm just starting to dip my toes into WPF in pyRevit. I tried to implement the pyrevit.forms.WPFWindow Class like this:
# -*- coding: UTF-8 -*-
"""
Third-Party software credits:
pyRevit: ...
3
votes
2
answers
637
views
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 ...
3
votes
1
answer
2k
views
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 ...
3
votes
1
answer
346
views
Can't prompt the user to pick a room with Revit Python Shell
Using the Revit Python Shell, I'm trying to prompt the user to pick a room.
I've been reading and implementing the method described here Revit Python Pick Object / Select Object .
It works fine, but ...
3
votes
1
answer
95
views
How to get revit version of files upload in BIM360 translated before 2021
I'm trying to get revit versions for file upload in BIM360 which are translated before 2021.
We get revit version for files translated after 2021 using below link https://developer.api.autodesk.com/...
3
votes
1
answer
248
views
How to pass a huge json file to the Command.cs in forge api design automation for revit?
I created a project from this tutorial.
How may I send a huge json file by user to be read in Command.cs in Design Automation for Revit on cloud? I receive the file in DesignAutomationController.cs ...