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
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
7
votes
1 answer

Create a WPF Progress Window on another thread

I'm creating a custom add-in command through the API of a piece of architectural modeling software called Revit. My command may take some time to complete so I want to show the user a window with a progress bar as it is working. Typically if I…
Eric Anastas
  • 21,675
  • 38
  • 142
  • 236
6
votes
0 answers

.NET Assembly loses some methods when imported from one Python file into another (IronPython)

I have no idea, if this is a IronPython issue, a Revit API assembly issue, or something else. Any information/ideas on what could be causing this is appreciated. I understand this is solvable by re-importing the same namespace again, but I am dying…
gtalarico
  • 4,409
  • 1
  • 20
  • 42
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
2 answers

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 transactions and the overall API, and I've invested…
Marcus Jones
  • 960
  • 3
  • 11
  • 27
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

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

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 object on the point anywhere or on a face. It's…
Jordi1302
  • 65
  • 7
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

How to Duplicate current `Family Type` and update it's parameters

We are using Autodesk's Forge (or Platform Service), more specifically, the Design Automation where we run scripts on our files in the cloud. We are looking into ways to import a "Type Catalog" (which is a ".txt" file) into the opened ".rfa" file…
3
votes
1 answer

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/derivativeservice/v2/manifest/:urn
3
votes
0 answers

Is there an in alternative to using ParameterSplit in revit api c# 2021?

I'm trying to create a method that splits rebar in Revit. I noticed that ParameterSplit is used in the 2015 API docs, Does anyone know if there is an alternative? The code snip is as below with geocurve being type Curve Curve[] curves =…
Tebo
  • 41
  • 3
1
2 3
64 65