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

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 over all elements to get its BoudingBox.Min and…
arn9000
  • 133
  • 1
  • 10
3
votes
0 answers

How to get underlying code from a .dyn file

I am trying to get the code from a dynamo file so that I can use it in a C# plugin for Revit. When I open the .dyn file all I see is a bunch of xml. I tried parsing it but this does not help. I am looking for a more automatic way than rewriting all…
Ross Lamon
  • 59
  • 3
3
votes
1 answer

TreeView adding and sorting

I have treeView sorted in my Autodesk Revit and I would like to show it same way in my windows form. At this time I was able to extract it just the way it looks in Revit (print log), but i cant figure out how to add it. Here's what I've done so…
Mbanch
  • 98
  • 6
3
votes
2 answers

.NET code coverage tools don't work on native applications that load .net assemblies

I am writing a plug-in module for Revit Architecture, which provides a .NET API. Essentially, you create an assembly with classes that implement a specific interface. Revit then loads the assembly and makes calls to the interface. I would like to…
GentlemanCoder
  • 547
  • 1
  • 5
  • 11
3
votes
1 answer

Managed C# App passing string as empty byte[] for some odd reason... IronPDF

I'm having a very odd issue when attempting to call a method from the Nuget Package IronPDF. Based on the symptoms and the fact that I can't find anyone else on the internet who has encountered this issue, I'm assuming it's not the package's…
3
votes
3 answers

Get all parameters of Schedule and Material Takeoff

I am creating plugin for Revit 2019 and want to get all the parameters of Wall Category. I have filtered the walls and then I am accessing parameters of wall. But I am not getting the parameters like "Material: Name, Material: Area, Material:…
Mah Noor
  • 83
  • 1
  • 11
3
votes
5 answers

How to include MaterialDesignXamlToolkit to WPF class library?

I'm trying to use MaterialDesignXamlToolkit in my WPF class library (.NET framework). I'm following their official quick start tutorial, but since i do not have App.xaml, i had to make some adjustments. Apperently some step was wrong, but i do not…
Marija Rakic
  • 140
  • 2
  • 11
3
votes
3 answers

Are IFC entity type names case sensitive or not?

Can anybody help in knowing whether IFC entity type names are case sensitive or case insensitive. For example: Can we replace IFCPERSON with IfcPerson (camel case) or ifcperson (small) in an *.ifc file?
3
votes
1 answer

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 using that I can only select walls, floors, doors,…
Arnaud
  • 445
  • 4
  • 18
3
votes
3 answers

Prevent Revit window from opening

I'm trying to intercept Revit and keep a window from opening. Specifically, I'm trying to apply a keynote to an object and then let the user create a keynote tag, however any way I do it it lets them place the keynote but then immediately gives…
sfaust
  • 2,089
  • 28
  • 54
3
votes
1 answer

Office interop is not working on several computers

I am developing an Autodesk Revit addin that communicates with Excel and performs some standard read/write operations on cells. I have referenced Microsoft.Office.Interop.Excel (v12.0.0.0), because some users might have Office 2007 installed instead…
3
votes
2 answers

How can I get the Revit file version using the Revit API?

In the Revit API I know that I can get the version of the Revit instance that is currently running (ControlledApplication.VersionBuild,ControlledApplication.VersionName,ControlledApplication.VersionNumber). However, I would like to get the version…
skeletank
  • 2,880
  • 5
  • 43
  • 75
3
votes
5 answers

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.
sweetfa
  • 5,457
  • 2
  • 48
  • 62
3
votes
3 answers

baffling API limitations

The API doesn't officially support threading (see below) or a way to close an active document. That said, a work around to closing an active document is to call... SendKeys.SendWait("^{F4}"); ...from a separate thread. That works fine, except I…
topofsteel
  • 1,267
  • 6
  • 16
  • 25
3
votes
3 answers

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)?
skeletank
  • 2,880
  • 5
  • 43
  • 75
1
2
3
35 36