Posts

Showing posts from 2022

(1) Revit plans to Power BI using Dynamo! (Part 1 of 2) - YouTube

(1) Revit plans to Power BI using Dynamo! (Part 1 of 2) - YouTube REvit > SVG to Power BI

Solved: Select all content on level - Autodesk Community - Revit Products

Solved: Select all content on level - Autodesk Community - Revit Products ##https://forums.autodesk.com/t5/revit-api-forum/select-all-content-on-level/td-p/10577273 """ Selects all elements that share the same Reference Level as the selected element. TESTED REVIT API: 2020.2.4 Author: Robert Perry Lackowski """ from Autodesk . Revit . DB import ElementLevelFilter , FilteredElementCollector from Autodesk . Revit . DB import Document , BuiltInParameter , BuiltInCategory , ElementFilter , ElementCategoryFilter , LogicalOrFilter , ElementIsElementTypeFilter , ElementId from Autodesk . Revit . Exceptions import OperationCanceledException # from pyrevit import DB doc = __revit__ . ActiveUIDocument . Document uidoc = __revit__ . ActiveUIDocument from rpw import ui import sys #Ask user to pick an object which has the desired reference level def pick_object (): from Autodesk . Revit . UI . Selection import ObjectTy

Git hub micro def repository started

Started a micor def repository for CPY3.r22 python routines for faster searching and references.  https://github.com/apsis0215/Revit-CYPython3-r22-Micro-defs
Image
  Interesting post from over a year ago comparing #Python #Csharp (C#) #Cpp (C++) and #Cppx64 (C++x64 bit). Python is exponentially slower than C++. There is no question that for larger long term development shifting or converting to C is immensely beneficial - particularly for longer term runs of applications or addins. Would externalizing addins on separate threads also speed things up or does Revit even allow apartment threading for addins? To put it in perspective Python is slower than C++ by a factor of more than 100 in these examples. Longer term runs show exponential performance increases with lower level languages (i.e. C++ and C#.) because of pythons interpretive nature (It doesn't' compile it runs from native code) Dave's Garage: Python -VS- C# -VS- C++(32) -VS- C++(64)   https://youtu.be/D3h62rgewZM?t=1352 Dave's Garage: Python -VS- C# -VS- C++(32) -VS- C++(64) https://lnkd.in/gmwZiDTb