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

IronPython and Revit API - How to display item attributes in listbox (attribute name)?

I am an architect who grew to love coding through Revit. But unfortunately since still being an ultimate noob, I would need some help from anyone willing to jump in. I am also Stackoverflow noob, so I dont know if it is even OK and excepted in the…
darkhitect
  • 55
  • 1
  • 6
2
votes
1 answer

How to retrieve geometry from IFC file using Xbim ? Or is there anyother alternative to this task?

I want to retrieve data from raw IFC file. I am trying this with Xbim. I am able to retrieve the elements but not able to get geometry specific data.I need location, boundingbox . Is is possible to do this with xbim ? Is there any alternative to…
2
votes
2 answers
2
votes
1 answer

Modify selection to first element by Selection.SetElementIds

I'm having trouble writing a script that lets med select the first element in my selection. This is useful for me because i select my correct Air Terminal from a schedule (where I can see the similar air-flow which I want to use) and use the command…
Kyrre
  • 85
  • 1
  • 5
2
votes
0 answers

Unexpected Error with FilteredElementCollector in pyrevit

Beginner in python, pyRevit, and Revit API so my apologies if I'm phrasing my question poorly. Today I used pyRevit to develop a simple pushbutton tool that worked, and then after a few minutes stopped working without anything being changed (that…
2
votes
2 answers

WinForm with user selection; Which way to go?

I'm writing an Addin for Revit with the template of Jeremy Tammik, which creates me a Ribbon with Buttons. I'm reading in an excel file, selecting lines and a starting point. My Ribbon My WinForm After the User is finished with his input, he…
Vahdet
  • 43
  • 8
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
2 answers

How to create URN for Revit File from revit plugin or using Forge apis

I need to know is there any possibility to create the URN from Revit file which is in BIM 360 Design. I have Model GUID and Project GUID in my hand. Replays will be appreciated.
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
3 answers

Process.GetCurrentProcess().MainWindowTitle of Revit retrieves empty string ""

I am creating a plugin for Revit that registers several events within its application. For every time an event happens, a line is writen on a txt file telling me about the event such as: The user opened a document on Autodesk Revit 2019 (...) I am…
Rita Aguiar
  • 65
  • 1
  • 10
2
votes
3 answers

How to get Project Guid and Model Guid from PathName?

My Revit model has an RVT link with a PathName = "BIM 360://Testing Link Edit in BIM360/ArchitectureBIM360.rvt" I want to construct a ModelPath and use it to open the cloud-hosted file as follows: ModelPath mp =…
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
2
votes
1 answer

Revit API Can not create new sweep in generic model adaptive family document

I have just started working with Revit API for a short time and been scratching my head with this problem. I want to create a family containing a solid form using "generic model adaptive" family template. However, it seems like I can not create a…
Thế Long
  • 516
  • 7
  • 19
2
votes
3 answers

How to automatically handle DialogBoxShowing event in Python(Revit Dynamo)?

How do I subscribe to Revit events in Python (Dynamo)? Specifically DialogBoxShowing so I can see if it is "Export with Temporary Hide/Isolate" warning and select "Leave the Temporary Isolate Mode on and Export"? It is done in C#…
JayW
  • 23
  • 3