Skip to main content

Questions tagged [pyrevit]

Use this tag to ask questions about the pyRevit project. pyRevit is a library designed to setup a Rapid Application Development environment inside Autodesk Revit®. It provides a collection of useful scripts and extensions.

pyrevit
0 votes
1 answer
49 views

How to Use PyRevit CLI to Run Python Scripts Without Opening Revit?

I'm currently working on automating some tasks using PyRevit CLI and the Revit API. My goal is to run Python scripts without actually opening the Revit GUI. Specifically, I've written a simple script ...
INNA's user avatar
  • 51
0 votes
1 answer
28 views

Can't unsubscribe from an event in Revit

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
25 views

Can I set up autocomplete in VS Code for Revit API stubs without having Revit installed?

In my office, I have a PC that does not meet the minimum requirements to install Revit. I want to use it just for writing my API codes in VS Code, so I can use them later on another PC with Revit ...
Redouane TEBBOUNE's user avatar
0 votes
1 answer
37 views

How to import Revit room into a Power BI report? Or create a topojson/geojson file from Revit rooms?

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
-1 votes
1 answer
132 views

How to modify subelements of an early created floor , Revit API

I created a floor, then I tried to access the SlabShapeEditor of this floor, but it returns None. How can I modify the sub-elements of this floor in a program? floor = Floor.Create(\_doc,\[...
Rado RAKOTONDRAMANANA's user avatar
2 votes
2 answers
304 views

Hide elements in Sheets or Revit Document

I am Having a doubt in Revit API. I want to hide some elements in Sheets of the Revit document. But I need an Active view to hide that. view.HideElements(ids) If I take a view which is active and try ...
Rocker's user avatar
  • 71
0 votes
0 answers
91 views

Issue with pyRevit forms

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
0 answers
81 views

WPF Resource Dictionary not found with IronPython (pyRevit Revit addin development)

I am working through learning XAML, and I'm trying to learn how to use a Resource Dictionary to keep my styles consistent across different UIs. I have gotten to this point where I have defined a ...
DSquad's user avatar
  • 111
0 votes
1 answer
198 views

Getting wrong width for thickness of element in Revit using Revit API

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
1 vote
0 answers
195 views

Handling warning in dynamo python

I’m getting this warning window while convert .sat to .rfa. How can I handle this warning automatically using dynamo python. I have also referred IFailurePreprocessor, but couldn’t use it before the ...
Ramyaa V S's user avatar
0 votes
1 answer
798 views

New Floor.Create() method Revit 2023 APIs with Python

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
0 votes
1 answer
108 views

WPF & Python: getting checkbox values from datatemplate

I'm not sure if this is the correct place to ask this, but here goes nothing: I am creating a wpf window with code behind in Python. I can’t seem to figure out how to get the selected items of my ...
PieterL's user avatar
1 vote
1 answer
224 views

Is it possible to keep track of the Revit ribbon buttons which were clicked on?

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
0 votes
1 answer
71 views

Simplify a series of repetitive functions with sort options

I have a series of functions in a module which are starting to become quite repetitive. Each function extracts a list, and has an optional boolean argument to sort the list before returning it. Feels ...
mybluesock's user avatar
1 vote
2 answers
76 views

Filter down list of elements by comparing their name properties to a list of potential partial matches

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

15 30 50 per page
1
2 3 4 5
8