Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

is there a way to use StartupUtils.MakeModel in revit API ? i'm making an Revit addin in C# based on a Python script that uses DesignScript.Geometry , this script works well but i'm trying a lot of ...
Johan Morales's user avatar
0 votes
0 answers
160 views

While working with pyRevit and Revit API to convert a file from one format to another, I am encountering the below dialog box with the ID - Dialog_Revit_DocWarnDialog. Selecting 'Unjoin Elements' is ...
INNA's user avatar
  • 141
0 votes
0 answers
33 views

I’m using pyrevit, and my WPF form is not being displayed (no error appears on the screen). The XAML layout is defined inline as a string. Interestingly, in another form where the XAML layout is also ...
Redouane TEBBOUNE's user avatar
1 vote
1 answer
47 views

I'm implementing a UI using WPF to create grids in Revit. To allow users to switch between numeric values ('1, 2, 3, ...') and alphabetic values ('A, B, C, ...') for grid names, I used a ComboBox, as ...
Redouane TEBBOUNE's user avatar
1 vote
1 answer
207 views

Is there a tool in Revit that allows to temporary isolate elements by a workset? For example - I have a MEP project and I want to isolate in 3D view all elements which are on Plumbing workset. By now ...
Joanna Kogut's user avatar
0 votes
1 answer
79 views

I'm trying to set up the UI to automatically clear elements when I subscribe to an event DialogBoxShowing. I can't unsubscribe from it and the replacement of user actions continues even when the code ...
Mi-liali's user avatar
0 votes
1 answer
162 views

I am attempting to import data from Revit rooms into an interactive Power BI report. I would like to bring the room geometries into the PBI report and link it with external data tables, creating ...
Anna Milczarek's user avatar
0 votes
0 answers
129 views

I am trying to use pyRevit to automate some tasks in Revit, but when I try to run an example code, it shows an error. Code: from pyrevit import forms ops = ['option1', 'option2', 'option3', 'option4'] ...
arash.amd's user avatar
0 votes
1 answer
275 views

I created a plugin with PyRevit using Revit API to get the materials in a layer used in the model with their thickness, but the result coming from API is not the same result that I gave to materials ...
Behdad Hajipour's user avatar
0 votes
1 answer
1k views

I'm currently working on developing a Revit plugin through pyRevit and I'm having some trouble creating a new Revit triangular Floor starting from three vertices defined in Python. I am new to Revit ...
Angelo Massafra's user avatar
1 vote
1 answer
305 views

I've been trying to figure out a way to record user interface actions to retrieve information about which ribbon buttons were clicked, but I've been unsuccessful so far. I've spend a lot of time ...
Omid's user avatar
  • 11
1 vote
2 answers
105 views

I'm working in python and Revit, and I have a list of detail items with a name parameter. I'd like to filter my list down just the detail items where the name contains a partial match for any string ...
mybluesock's user avatar
0 votes
0 answers
34 views

I am a user of pyRevit and I am trying to create my own script with UI. I am trying to create listview with view templates in revit. In this listview I want to show Name of the view templates. ...
Kml123 P's user avatar
0 votes
2 answers
927 views

Is there a method Revit API where I can select elements in order, highlighting the elements selection. Please note, Selection.PickObjects() does the selection & highlighting but does not save the ...
John Kuldeep Roshan Kerketta's user avatar
0 votes
1 answer
533 views

Using revit-python-wrapper to create Wall then adjust the Wall height and Wall offset to the ground. Here is the code from rpw import db from rpw import DB start_point = XYZ(0, ...
cdhit's user avatar
  • 1,474
2 votes
1 answer
311 views

I start learning pyRevit and here's the trouble. I want to create a WPF where I may enter values then Revit could would automatically construct a simple rectangular building. I have already create a ...
John's user avatar
  • 29
0 votes
4 answers
2k views

I am trying to activate a view using Revit API. What I want to do exactly is to display the level or floor plan view. So the view I want to activate ( I mean, I want this view to be actually shown on ...
Abhijit's user avatar
1 vote
1 answer
952 views

Dynamo Script Within Dynamo I was able to adjust the title block per sheet but I was requested to simplify it into a button click using python only. I can find the sheets but I can not adjust the ...
Stephen Dini's user avatar
1 vote
1 answer
767 views

When running Revitpythonshell or running a python script with XAML gui I am unable to work in Revit until closing Revitpythonshell or the python gui. Is there a way to keep Revit from becoming ...
ChuckSpadina's user avatar
0 votes
1 answer
844 views

I have collected element types using following code in Ironpython: typeelements = DB.FilteredElementCollector(revit.doc)\ .OfClass(DB.ElementType)\ .ToElements(...
shahabaz sha's user avatar
0 votes
1 answer
2k views

I am trying to create a list of all type parameters using ironpython hosted by pyrevit. I tried following code from pyrevit import revit, DB doc =__revit__.ActiveUIDocument.Document curview = doc....
shahabaz sha's user avatar
1 vote
0 answers
446 views

I'm trying to debug my multi-version plugin for Revit however I'm having issues. It was originally created for Revit 2018 so it debugs fine in that, however when I switch the external program to Revit ...
Cflux's user avatar
  • 1,542
0 votes
2 answers
674 views

I am trying (for a long time) to use pyrevit forms to open excel files, but everytime I try to use it, a different error appears. The most recent error is the one in the image. If I try 'from pyrevit ...
Tais Magalhaes's user avatar
1 vote
1 answer
610 views

in Revit, I have selected views (selvpsElements) that I want to align with a primary view (primaryCenter). I have the primary view center shown below: primaryCenter = [<Autodesk.Revit.DB.XYZ object ...
Simon Palmer's user avatar
-2 votes
1 answer
789 views

I am trying to convert a C# code (for revit API) to python but to no luck. The C# code looks: public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { ...
Aldar Budayev's user avatar