Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
75 views

Is there a way to get Revit Python Shell not to buffer the print statement? For example, with this code, it is clear to see that RPS will not show anything on the screen until after the loop has ...
Michelle's user avatar
-1 votes
1 answer
112 views

I have to search a small list (varies from 0 to 10 items) a large number of times and was wondering what the best way to do that would be using Python (specifically IronPython 2.7) The number of ...
Michelle's user avatar
0 votes
1 answer
174 views

I try to create a line load on a wall in Revit 2024 using python. But I'm getting an error. I have attached my code and error image below, can anybody help in solving this. import clr import Autodesk....
John's user avatar
  • 1
1 vote
1 answer
257 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
1 vote
1 answer
344 views

Im using Python, pyRevit and Revit 2021 Main goal I want to use the FilteredElementCollector in order to collect specific elements within Revit Links linked in my project. My problem My question is ...
IdoBa's user avatar
  • 435
1 vote
2 answers
106 views

I'm creating a python script to run in the RevitPythonShell 2024.0.0.0 add-in for Revit which will look for duplicate Family/Type names of elements housed in differing Revit Worksets, perform a ...
Neil Wakeman's user avatar
1 vote
1 answer
56 views

Using Revit Python Shell, is it possible to get a print statement to print colored text? For example, print "An Apple is red" where the word "Apple" prints in red.
Michelle's user avatar
0 votes
1 answer
72 views

I had download rps setup file "2019.09.19_setup_RevitPythonShell_2019.exe" from https://github.com/architecture-building-systems/revitpythonshell But RevitPythonShell version is still 2018.0....
김태헌's user avatar
0 votes
1 answer
90 views

I am reading data in from CSV text file where each line in the file is a distinct record. In that record is the name of a text style which I need to convert to the elementID of a TextNoteType. I have ...
Michelle's user avatar
2 votes
0 answers
469 views

After banging my head for awhile trying to figure out how to change - using the Revit API - the linestyle of an existing detail line to another given the name of the linestyle, I finally figured it ...
Michelle's user avatar
1 vote
1 answer
94 views

Is it possible to use Iron Python logging module in Revit Python Shell? For example, this code works in RPS in sending logging messages to a file: import logging LOG_FILENAME = 'example.log' logging....
Michelle's user avatar
1 vote
1 answer
98 views

I'm new to the Revit API, and I would like to experiment with a sheet to get the cost property of a simple sheet that has 4 walls: Do you know if doing this using the Revit API is possible? My idea is ...
Cesar Jr Rodriguez's user avatar
1 vote
0 answers
55 views

I would like to install Python Log Indenter (Document Page ) for use with RevitPytonShell (IronPython version). The docs for Python Log Indenter indicate that PIP be used for installation but I am not ...
Michelle's user avatar
2 votes
2 answers
507 views

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
  • 96
0 votes
0 answers
133 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
1 vote
1 answer
171 views

I am using IronPython with the RevitPythonShell to access a DWG file via COM. I have the COM access portion working but I can not figure out how to convert the return value into a Python list. My ...
Michelle's user avatar
0 votes
1 answer
338 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
1 vote
0 answers
371 views

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

I learning to use the Revit Python Shell addin and have come across a problem that I am hoping someone knows the answer to. Initially, I would create a Python script using Notepad and then load that ...
Michelle's user avatar
0 votes
1 answer
58 views

I am learning to use the Revit Python Shell and while I see the message below, it does not seem to do anything. Type "help", "copyright", "credits" or "license" ...
Michelle's user avatar
1 vote
2 answers
513 views

It looks I need to clarify my intent for this posting. I am looking to display information when starting the interactive Revit Python Shell. I am not looking to run a script at Revit startup or any ...
Michelle's user avatar
1 vote
1 answer
338 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
0 votes
0 answers
376 views

I'm working to create Schedule on Revit by C# but Can not add Calculated Value Create Schedule on Revit By C#
Islam Heakal's user avatar
1 vote
1 answer
766 views

Im new to the Revit API. I can get the Revit link instance using C# with the code below. Element e = doc.GetElement(r); if (e is RevitLinkInstance) { //Get revit link instance ...
SFT's user avatar
  • 13
1 vote
1 answer
604 views

I try to write program for add insulation in Revit model. Now i want put only one type of insulation and thicknes (user sets type and insulation → in the future) but i don’t know how to work around ...
PawelKinczyk's user avatar
0 votes
2 answers
956 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
2 votes
1 answer
844 views

I have problem with pick objects(linked elements). My "allow Element" filter works for elements in revit model but if i use the same ISelectionFilter for linked elements i can't pick ...
PawelKinczyk's user avatar
1 vote
1 answer
894 views

I have read this article that explains how to set the level of a floor without moving it. The article refers to the Building Coder where the BuiltInParameter.LEVEL_PARAM is used. However this method ...
Hauk-Morten's user avatar
0 votes
0 answers
157 views

I am using this function - NewFamilyInstance Method (Line, FamilySymbol, View). However, this function has overloading in API. The .net support function overloading, however Python doesn't support ...
cdhit's user avatar
  • 1,474
0 votes
1 answer
552 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
-1 votes
1 answer
546 views

i'm trying to run this simple code but keep facing with this error. i've downloaded everything and searched everywhere but still don't know how to handle this. from matplotlib import pyplot as plt ...
S.Katuzian's user avatar
1 vote
2 answers
1k views

my idea I tried to use "SetViewRange" to get "View Range" in "Plan Region", but "Plan Region" is not "View Plane", only "ViewPlane" can use ...
smile-jie's user avatar
1 vote
0 answers
255 views

My intention is to open and close a file located on BIM360 via python to force sync Desktop Connector. import os filepath = "C:\\Users\\{}\\ACCDocs\\XXXX\\Project Template\\Project Files\\File....
Marcus's user avatar
  • 21
1 vote
2 answers
1k views

I'm trying to get the name of an element by way the ID using Revit python wrapper in Revit python shell but I'm having issues. I am typically able to do it using c# but rpw is new to me. I try: doc....
Cflux's user avatar
  • 1,538
0 votes
1 answer
864 views

I'm trying to get the Revit python shell debugger working in my dynamo but I'm running into issues. It seems to run in Revit alright but I cant get the debugger in dynamo to work as shown here. Also ...
Cflux's user avatar
  • 1,538
2 votes
1 answer
344 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
1 answer
641 views

I have retreive the levels as treeview(List of levels in treeview in WPF form) and then selected a wall(e.g xyz_wall) from a specific level(e.g. Level1) in Revit project, I want to retrieve the list ...
Abhijit's user avatar
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
182 views

Trying to run the NewProjectDocument command from Revit API when no project is open but I am getting this error. It seems to work fine when a project is open. Any suggestions? RPS Error
ftroshani's user avatar
0 votes
1 answer
357 views

I want to export variable named completed so that I can use this out of PythonShell.run function. Is there any suggestion? here's my code. python code #test.py import sys def hello(a,b): print(&...
GwiHwan Go's user avatar
1 vote
1 answer
760 views

I am trying to read Linked Project Base Point/Survey Point in Revit 2020 I am trying to get "E/W",'N/S', "Elev", 'Angle to True North' from BasePoint Class in Revit 2020. The same ...
John Kuldeep Roshan Kerketta's user avatar
1 vote
0 answers
627 views

I'm trying to create a raster image instance in my model using the new ImageType API in Revit 2021. However, it keeps giving me an error. My code snippet: from rpw import DB image_options = DB....
Yongjoon Kim's user avatar
1 vote
1 answer
813 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
1 vote
2 answers
2k views

I am working in Iron python in pyRevit environment and my code is as follows: element_types = \ DB.FilteredElementCollector(doc)\ .OfCategory(DB.BuiltInCategory.OST_Walls)\ ...
shahabaz sha's user avatar
-3 votes
1 answer
188 views

I was trying to link the Javascript Electron app with the python deep learning engine by using PYthon-shell. But I don't know where to go now. This is the python code: from keras.models import ...
soldour's user avatar
  • 21
0 votes
1 answer
422 views

I'm trying to use ray casting to gather all the surfaces in a room and determine it's volume. I have a centroid location where the rays will be coming from, but I'm drawing a blank on how to get the ...
martinservold's user avatar
1 vote
1 answer
800 views

I am trying to make a python list with the selected elements ID's in Revit API. I've tried to collect ID's of the grids in the sample structural file and then use this list back in Visual Studio Code. ...
ExploringPython1's user avatar
0 votes
1 answer
321 views

I am trying to create a pyrevit addin which filters elements in current view based on user selected element's parameter value. This works fine for parameters of string and double kind. But ...
shahabaz sha's user avatar
0 votes
2 answers
709 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
2 votes
3 answers
662 views

I am trying to take advantage of ExtensibleStorage in the Revit API. I'm trying to store an Array in a ArrayField. I think maybe my errors are due to the IronPython interface, but maybe someone has ...
Kyrre's user avatar
  • 85