Moustafa Khalilsharpbim.hashnode.dev·May 15, 2024Offset EllipseWhile using the offset function in the Revit API, I noticed that ellipses don't retain their properties after offsetting. Instead, they are converted to another type of segment classified as a Hermite-spline. How can I keep the ellipse properties aft...DiscussHermite-spline
Moustafa Khalilsharpbim.hashnode.dev·May 10, 2024Highlight elements from a linked documentIt has long been a wish to select elements from a linked element. This wish seems to have been granted in the Revit 2023 Release API. A new Selection function called SetReferences has been added, allowing elements to be highlighted via reference. We ...Discuss·53 readsHighlight Element
Moustafa Khalilsharpbim.hashnode.dev·May 6, 2024ModelText RotationModel text, in fact, is a bit tricky to determine its rotation value. I attempted to inspect its solids in the hope of finding any reference lines to grasp it, but I was unsuccessful. As I expanded my investigation to comprehend how model text functi...DiscussModel Text
Moustafa Khalilsharpbim.hashnode.dev·May 3, 2024Rotate BoundingBoxBoundingBox, as the name suggests, is a box that contains elements inside it. The RevitAPI allows developers to access this box for various purposes like filtering, determining its position, dimensions, and more. It's important to note that the bound...DiscussBoundingBox
Moustafa Khalilsharpbim.hashnode.dev·May 3, 2024Section line locationDrawing a section over a plan drawing is crucial for getting a better view of how an element is positioned or constructed. For instance, we can easily observe and manage a wall's height through a section. Assuming we already have a section view and n...DiscussSectionLine
Moustafa Khalilsharpbim.hashnode.dev·May 3, 2024Purging Viewport TypesIn RevitAPI, filtering and collecting elements are present in almost every developed code for writing add-ins. Usually, we locate elements by their Category or class type using statements like this, for example when we want to retrieve all walls from...DiscussViewports
Moustafa Khalilsharpbim.hashnode.dev·May 3, 2024Getting new ElementsEach time we create or draw an element in Revit, a new record is added to the Revit database. This could be a wall, a window, a floor, and so on. These new records are identified by an ID, which is a number stored in a class called ElementId. When we...DiscussElementId
Symon Kipkemeikipkemei.hashnode.dev·Jun 27, 2023Installing a pyRevit ExtensionTo install a Pyrevit extension for a Revit project, follow the following steps: Download and install the PyRevit setup from the link below. pyRevit helps you quickly sketch out your automation and addon ideas, inside the Revit environment and using ...Discuss·96 readspyrevit
Symon Kipkemeikipkemei.hashnode.dev·May 17, 2023Setting up Revit API Development Environment in vs code .Download and install the PyRevit setup from the link below. pyRevit helps you quickly sketch out your automation and addon ideas, inside the Revit environment and using its APIs. https://github.com/eirannejad/pyRevit/releases Download and install...Discuss·696 readsrevitapi
Symon Kipkemeikipkemei.hashnode.dev·May 16, 2023Auto-rotating columns in RevitAssume you were instructed to rotate columns . How will you get this task done within the shortest time possible? The traditional practice You will do the following probably: Delete all the columns Rotate one column Replace all the deleted columns...Discuss·97 readsDynamic Programming