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

view filter in the help doesn't work

I am trying to run the code that on the Autodesk help http://help.autodesk.com/view/RVT/2014/ENU/?guid=GUID-B6FB80F2-7A17-4242-9E95-D6056090E85B but it seem not to work. The code "FirstElement ().get_Parameter("Comments");" don't work. No…
uakam
  • 27
  • 6
2
votes
3 answers

How to load Revit file in API using C#?

I want to load the *.api file in C# code. I am trying to export the images from Revit file for specific views in c# application. The issue is to get the ExternalCommandData from revit (*.rvt) file. public Autodesk.Revit.UI.Result…
2
votes
1 answer

How to get all parameter choices in Revit?

There is an element's parameter that has like 5 choices (combobox's style). I know how to get the current selected one, but is there a way to retrieve the 4 other choices?
Wildhorn
  • 926
  • 1
  • 11
  • 30
2
votes
2 answers

Getting the current Application and Document from IExternalApplication - Revit

While executing IExternalCommand i can easily obtain the Application and Document via ExternalCommandData UIApplication uiApp = commandData.Application; Document doc = uiApp.ActiveUIDocument.Document; Transaction trans = new…
Skinner
  • 1,461
  • 4
  • 17
  • 27
2
votes
5 answers

Revit API - Wrong full class name

I'm very new to C# and coding. If possible I'm after some assistance figuring out how to fix this piece of code up to work. They work individually. I can create a new button on the ribbon and execute the standard hello world. i also have a macro…
Shaps
  • 21
  • 2
2
votes
3 answers

Create Revit Plugin With Windows Form

I've been trying to create a plugin for Revit 2017 with Visual Studio 2015 with windows Form. Unfortunately I've not found any documentation online for doing so (if you have links, i'll be happy to give them a look) I've built a simple form using a…
Elliott Addi
  • 370
  • 4
  • 18
2
votes
2 answers

Extraction Project Properties from Revit

Is it posible to somehow extract, export or copy Project Properties from Revit file using Revit Python Shell? And if yes, how difficult it is?
Zed
  • 23
  • 2
2
votes
0 answers

Shading not working in Blender

I´m having problems with normals in blender and can´t find anything about this specific problem on the internet. I have made a building in Revit and exported it as FBX to Blender. In the end I want to use it in Unity. As I imported the FBX in…
2
votes
1 answer

NULL pointer is returned by asking for the hostID of a door

I have the following code snippet: var familyInstanceFilter = new ElementClassFilter(typeof(FamilyInstance)); var doorsCategoryfilter = new ElementCategoryFilter(BuiltInCategory.OST_Doors); var doorInstancesFilter = new…
Thijser
  • 2,625
  • 1
  • 36
  • 71
2
votes
1 answer

How to pick the right LoadFamily function in revitpythonshell

revitpythonshell provides two very similar methods to load a family. LoadFamily(self: Document, filename:str) -> (bool, Family) LoadFamily(self: Document, filename:str) -> bool So it seems like only the return values are different. I have tried to…
2
votes
1 answer

C# Need to wait for a COM event to fire before continuing execution without control over event

I've read a few other questions that seem similar but I'm still very confused, and none of the answers seem to be working for me so I decided to ask another question. Please bear with me, I'm not very well versed on threading and what not. The…
RodH257
  • 3,552
  • 5
  • 36
  • 46
2
votes
1 answer

Revit API building: How to put drop down list in a dialog box?

I am using C# to build an API for this software called Revit Autodesk. I want to show a dialogue box which shows a drop down list, then user can choose from that list. I initiated a new object known as TaskDialog It shows me a dialogue box, but I…
India Slaver
  • 33
  • 10
2
votes
1 answer

Revit API : "PickObject" not displaying dialog window

I just did what is written here, but I got a problem with __window__.Topmost = True. (So, I'm running directly from the Shell) Here is my complete code : def Test(self) : __window__.Hide() sel = __revit__.ActiveUIDocument.Selection …
Arnaud
  • 445
  • 4
  • 18
2
votes
2 answers

Revit API AddInCommandBinding for ID_PROCESS_DROP

I'm trying to bind the drag/drop of a family into the project and disable it. My code is based on the Revit 2014 SDK Sample DisableCommand My code has the .CanHaveBinding test and I have a dialog that displays success or failure. When I run the…
BigBadBIM
  • 21
  • 1
2
votes
1 answer

How To Reference Document and Application from Revit API in a button_click event?

This is the execute method to show the objects obtained in the revit api, following that is the code in question. The reference to the document or application objects cant be obtained, this is what I have gleaned from the error report in ms visual…
Bimtopian
  • 37
  • 1
  • 5