Questions tagged [revit]

Revit is a BIM (Building Information Modeling) software tool used by architects, engineers, etc.

Revit is a BIM (Building Information Modeling) software tool for Windows OS used by architects, engineers, etc. It was created by Revit Technologies Inc. and then purchased by Autodesk Inc. in 2002. It has a .NET API that can be used to interact with the UI as well as the underlying objects inside of project and family files.

Resources

The Building Coder

529 questions
63
votes
9 answers

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 created by inheriting from a base command class…
Eric Anastas
  • 21,675
  • 38
  • 142
  • 236
35
votes
1 answer

How to find start/end of ramp in revit, perhaps with sketches?

I have a bunch of ramps that I would like to know the begin and end points of (and in case of multiple begin/end points I would like to know how they connect). I currently get these as List ret = new…
Thijser
  • 2,625
  • 1
  • 36
  • 71
17
votes
13 answers

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 property grid displays fine in Visual studio, and…
Eric Anastas
  • 21,675
  • 38
  • 142
  • 236
10
votes
5 answers

How to break someone into testing?

OK. Our product works. Beta testers are actually getting their stuff done. Time for the next iteration. But how to ensure quality? We need a tester! How do I get someone fresh off the street started in testing? I have no clue on how to do it myself…
Daren Thomas
  • 67,947
  • 40
  • 154
  • 200
10
votes
3 answers

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 debug session, manually load a Revit project, click…
Daren Thomas
  • 67,947
  • 40
  • 154
  • 200
8
votes
3 answers

Path.GetTempPath() method returns UserTempPath with GUID in the end when using Revit 2020

Most of the applications consuming my add-in return "C:\Users\[username]\AppData\Local\Temp\" path. But one application is returning "C:\Users\[username]\AppData\Local\Temp\1affa5dd-2f26-4c96-9965-7a78f5c76321\". The GUID in the end changes every…
Umar
  • 478
  • 3
  • 10
6
votes
1 answer

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 own family. The way that the…
LuebkerJ
  • 61
  • 3
5
votes
2 answers

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 user modifies the model and commits the changes…
Thoran
  • 8,884
  • 7
  • 41
  • 50
5
votes
3 answers

Gettings information about stairsruns and stairs from elements containing such information

Hello I have the following code: public static void HandleStairs(Document doc) List ret = new List(); FilteredElementCollector collector = new FilteredElementCollector(doc); …
Thijser
  • 2,625
  • 1
  • 36
  • 71
4
votes
3 answers

Custom property (Identity Data) in Revit model got translated wrong

We are experiencing troubles when using the model derivative API to translate and extract properties from a Revit Model. As the screenshot implies, we have a custom property under Identity Data. But after translation its under Mark (the property…
4
votes
0 answers

How to override MessageBox Help Button path?

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 to Revit's help website. In other forms, I was…
Nicholas Pisca
  • 150
  • 1
  • 10
4
votes
0 answers

C# Revit Extension using WPF & SharpGL

I'm trying to create a Revit Extension using SharpGL in WPF window and just can't get the FPS over 10. WPF & SharpGL work smooth together without Revit. This is the simple code public class Class1 : IExternalCommand { public Result Execute( …
Luka
  • 51
  • 3
4
votes
3 answers

How can I activate (display) a view using Revit API?

I am trying to activate a view using Revit API. What I want to do exactly is to prompt the user to select some walls, but when the user is asked that, he can't switch views to select more walls (everything is greyed out at that point). So the view…
Arnaud
  • 445
  • 4
  • 18
4
votes
1 answer

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 see this newly added element with the…
RandomUsername
  • 364
  • 1
  • 5
  • 13
3
votes
2 answers

c# - Revit api - multi version plugin .csproj file

I'm trying to create a simple multi-version hello World plug-in for Revit and I've found this article which I'm trying to follow along. however, I'm not getting very far. I'm not so familiar with how the .csproj file works. I've created plugins…
Cflux
  • 1,423
  • 3
  • 19
  • 39
1
2 3
35 36