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

Anyone using WPF / MVVM in the Revit environment?

Anyone using WPF / MVVM in the Revit environment? Be interested yo hear any feedback ie framework or not? Is it possible? I'd also like to embed some Silverlight controls later like Pivotviewer. Is this possible through a webbrowser & wpf? Thanks.
BigNat
  • 31
  • 1
  • 5
2
votes
1 answer

Revit, how to get position, length and height in a selected wall

I have this code and I don't know how I can display the position, the height, and the length of my selected wall: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Autodesk.Revit.DB; using…
NewBee
  • 21
  • 1
  • 2
2
votes
1 answer

RPS: Cannot import name ExporterIFCUtils

With the revitpythonshell 2020 I try to import the class ExporterIFCUtils from Autodesk.Revit.DB.IFC import ExporterIFCUtils and get the error: "Exception : IronPython.Runtime.Exceptions.ImportException: Cannot import name ExporterIFCUtils"
StefanAnd
  • 21
  • 2
2
votes
1 answer

Revit 2020 API - Family Document active view returning null after Family document is open and activated

I'm trying to get the active view of my family's document but it returns null. In Revit 2019, it would always return a value however I've recently switched to Revit 2020 and it seems to be giving me an issue. Has anyone else run into this yet and…
Cflux
  • 1,423
  • 3
  • 19
  • 39
2
votes
0 answers

Forge API: How do I get the geometry of a 2D floor plan using Forge API

I have looked at the model derivative API and it looks like the translation to obj format is only supported for 3D views I tried the following call but, I get a 406 in Postman. Using the SDK I just get an error saying "Error calling translate" when…
InsaneKarma
  • 75
  • 1
  • 8
2
votes
1 answer

Slow first HTTP request with HttpWebRequest

So I'm trying to use HttpWebRequest in my C# plugin for Revit(BIM software), to send a request to my API. But every time I try this, it takes way longer than the request would take in Chrome/Firefox/Postman. If I send my request with Postman, it…
Martijn
  • 141
  • 1
  • 8
2
votes
1 answer

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 using form, but i am unable to send it to…
2
votes
0 answers

Revit C# Skip loading pyrevit

I just got into using C# finally on Visual Studio and its great. I have a simple question. I have PyRevit loaded on my computer. When I run Debug on visual studio, PyRevit adds another 2 minutes in loading Revit. Since I am constantly running debug…
Cflux
  • 1,423
  • 3
  • 19
  • 39
2
votes
1 answer

Revit ribbonpanel pushbutton with Bitmap Image without RevitPythonShell or C# (ironpython only)?

I am an architect (real one, not software architect :) ) experimenting a bit with Revit API and introducing myself into coding world. I have done a part with C# but switched to Python with hope that initial steps will go faster this way. To get…
darkhitect
  • 55
  • 1
  • 6
2
votes
0 answers

Manual Regeneration On Workshared Cloud Models Revit API

I'm working on an add-in that generates a number of complex 2D and 3D views and sheets (shopdrawings for fabrication). The number of views ranges from around 10 all the way up to 100+ views and sheets. Using Manual Regeneration and only updating…
Noam Ronen
  • 29
  • 3
2
votes
0 answers

does revit import xdata contains in a dwg file? if not, why?

I need to collect xdata information pf .dwg file in revit. but I did not find a way to do that. I'm wondering whether this kind of information is also imported as other information? I think revit should import this kind of information. because I…
2
votes
0 answers

Create points from list of X, Y and Z in Dynamo Python Script

I have 3 lists, each is the X, Y and Z coordinates of the points. I tried using Dynamo's Point.ByCoordinates nodes, however it doesn't accept list as input. I try to create a Python script to assist me in this, however I'm very new to python, could…
Gregor Isack
  • 1,111
  • 12
  • 25
2
votes
2 answers

Placing a custom mass family instance in a model using Revit API

I created a custom Mass family, which is a simple cylinder. I'm trying to place it on a specific point on a specific level using the NewFamilyInstance method. This is the code I'm using to place the instance: doc.Create.NewFamilyInstance(new XYZ(0,…
NIM4
  • 121
  • 1
  • 10
2
votes
0 answers

Setting New Compound Structure for WallType Does not Update LayerID of CompoundStructureLayers

1)I have a WallType and need to Change the compound structure of WallType. private void updateCompoundStructure(WallType wT) { IList csl = new List(); …
Arvind Maurya
  • 910
  • 12
  • 25
2
votes
1 answer

revit Api : FacingFlipped property of FamilyInstance(door) gives different values?

I am trying to retrieve the FamilyInstance FacingFlipped I have 2 cases case 1: if the wall is drawn from left to right and we place door the face flip value I get is "False" case 2 : if wall is drawn from right to left and we place door the…
Arvind Maurya
  • 910
  • 12
  • 25
1 2
3
35 36