A quick look at CefSharp and conversations shedding light on Toposolids and camera settings – Using the built-in CefSharp browser – Toposolid subdivision material – Camera target... Read more →
A quick look at CefSharp and conversations shedding light on Toposolids and camera settings – Using the built-in CefSharp browser – Toposolid subdivision material – Camera target... Read more →
Posted on November 29, 2023 at 11:00 in Parameters, Topo, User Interface, View, WPF | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Today, we shed some light on family and section view creation – System family predicate – Level-based family template – Create section view in Python... Read more →
Posted on September 12, 2023 at 11:00 in Data Access, Family, Parameters, Properties, Python, Template, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Autodesk University 2022 is in full swing and brings exciting news. Meanwhile, the Revit API discussion forum continues unperturbed with other equally exciting conversations and solutions – Forge is dead; long live APS – Forma for AEC – Linked element visibility – Visibility of a specific element in a view – Miter join walls to retrieve full faces... Read more →
Non-API Revit Server access, exporting Outlook email text, and using a view filter to alert to missing data... Read more →
Posted on November 25, 2021 at 11:00 in Filters, Getting Started, Properties, Server, User Interface, View, Win32 | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Increasing numbers of of Python and Dynamo oriented topics in the Revit API discussion forum, and a final deprecated API clean-up – The Building Coder samples clean – Retrieving all elements on level – Get ViewSheet from View – Fabrication transaction in Dynamo... Read more →
Posted on September 06, 2021 at 11:00 in 2022, Data Access, Dynamo, Element Relationships, Filters, Migration, Python, RME, RST, SDK Samples, Update, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Two Revit API discussion forum threads that I am currently involved in – Painting stairs – Ray tracing vs bounding box to find beams intersecting columns... Read more →
Posted on June 22, 2021 at 11:00 in Algorithm, Analysis, Element Relationships, Geometry, Material, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
How are reflections like flip and mirror reflected in the BIM element transform? – Transient elements hack – Temporary incanvas graphics API video – Shared versus non-shared parameter creation – Direct PDF export and DA4R... Read more →
Posted on May 26, 2021 at 11:00 in 2022, AVF, DA4R, Element Creation, Export, Geometry, Parameters, PDF, User Interface, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Today, we look at accessing and exporting sheet view coordinates, transforms, images and title block data, including the title block geometry and text values – Extracting title block geometry and text – Element coordinates on sheet – Export view as high quality image... Read more →
Posted on January 21, 2021 at 11:00 in Data Access, Export, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
A quick look at various methods to integrate transient graphics into Revit and pointers to articles of interest on other current non-API-related topics such as chess AI, basic income and the effectiveness of lockdowns – Transient graphics – AI learns to emulate human-style chess – Basic income as fault-tolerant engineering – Lockdown effectivity... Read more →
Posted on January 14, 2021 at 11:00 in AI, AVF, News, User Interface, View, Win32 | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
A nice new minimal DMU example and updates and enhancements to several other important sample applications
– Simple dynamic model updater example
– ExportCncFab SortMark
update
– RevitLookup exception on view GetTemplateParameterIds
...
Read more →
Posted on December 09, 2020 at 11:00 in DMU, Parameters, Parts, RevitLookup, SDK Samples, Update, Utilities, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
The week is coming to an end all too quickly... here are some compelling topics before we enter the weekend
– Explaining texture UV
mapping using AVF
– Más Allá de Dynamo Spanish-language book
– A detailed 3D model of a human cell...
Read more →
Valerii Nozdrenkov shares a powerful solution to save and restore the complete 3D view camera settings and Ehsan Iran-Nejad publishes his set of Revit cheat sheets – Serialising 3D view camera settings – Revit cheat sheets... Read more →
Posted on October 14, 2020 at 11:00 in Data Access, Python, Settings, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
The Revit update release is now available, and some insights on normalising UVs in the custom exporter – The Revit 2021.1 update – Normalising UVs in custom exporter – Set up your own free VPN server... Read more →
Two beautiful Revit API solutions to – Set view crop to section box and – Access room boundaries and intersections in linked models... Read more →
Posted on June 26, 2020 at 11:00 in Algorithm, Element Relationships, Filters, Geometry, Links, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
The question of how to change the colour and material of individual elements has come up repeatedly over time – Change element colour in a view – Assign new material to an element – Replace a material in a wall or floor... Read more →
Posted on June 08, 2020 at 11:00 in Material, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Today we resuscitate a five-year old Revit API answer, still as fresh and useful as ever, followed by Forge and job opportunities truly fresh off the presses – Determining the Revit Camera FOV – Forge Partner Talks – Jobs at Autodesk... Read more →
Posted on April 28, 2020 at 11:00 in Cloud, Data Access, Forge, Job, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Another inspiring guide to getting started with the Revit API, creating interior elevations and revisiting the Revit command line switches – Learning to code with interior elevations – Revit command line switches updated – World-wide connectivity... Read more →
Posted on March 03, 2020 at 11:00 in Getting Started, User Interface, Utilities, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Today, let's highlight two view related data access topics – Get ViewSheet from View – Title block data access... Read more →
Posted on February 13, 2020 at 11:00 in Data Access, Element Relationships, Filters, Parameters, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Here are some relevant topics for today – Can you avoid generating graphics? – Read all thermal and physical assets – Collection of old add-in managers – Compiling an add-in without Revit installed – Xeokit 3D BIM and CAD viewer – Software development manager job opportunity... Read more →
Posted on October 31, 2019 at 11:00 in BIM, Debugging, Installation, Job, Material, OBJ, Performance, SDK Samples, STL, Utilities, View, Viewer | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Let me once again highlight two helpful answers in the Revit API discussion forum and the newest pair of Forge Design Automation samples – Get project parameter id from its name – Preventing an updater loop – New Forge and Design Automation samples... Read more →
Posted on October 01, 2019 at 11:00 in DA4R, DMU, Filters, Forge, Parameters, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
As high-resolution monitors grow ever more common, an important question arises on handling add-in scaling for 4K high resolution screens – Problem adapting a Revit add-in for 4K displays – Application properties for stand-alone apps – Application manifest – Separate UI component with IPC – Two solutions for adjusting Revit for 4K displays – Method 1 – Run hires monitor in low resolution – Method 2 – Adjust how Revit handles 4k displays – Discussion of the results... Read more →
Posted on September 17, 2019 at 11:00 in Settings, User Interface, View, Win32 | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Happy Birthday to The Building Coder!
The online Revit API documentation now supports full text search.
Dynamo implements a new ViewCone
functionality...
Read more →
Topics for this week – Revit public roadmap July 2019 – Rebar curves – Built-in zip utility for add-in wizard – Only detail section views can be used for top view direction – Displaying an RFA family instance in DA4R – Revit 2020 alters the TEMP file system variable – Lattice multiplication... Read more →
Here are this week's interesting items I want to share with you – Map Forge Viewer camera settings back to Revit – Project Quantum becomes Plasma – Mikako's DA4R overview – AI is affecting human game strategies – AI can convert speech to gesture – Barcelona Forge accelerator – Open positions at Autodesk... Read more →
Posted on June 21, 2019 at 11:00 in Accelerator, AI, Algorithm, BIM, DA4R, Deep Learning, Forge, News, View, Viewer | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
I played around creating a new SectionCutGeo add-in to retrieve the geometry resulting from cutting a family instance in a section view. This was prompted the Revit API discussion forum thread on getting intersection lines from cut in section view – Intersection of section and family instance task – Solution options, geometry elements and view settings – Retrieving curves in the cut plane – Helper methods and external command mainline – Sample model and results – Caveat... Read more →
Posted on May 23, 2019 at 11:00 in Algorithm, Data Access, Family, Geometry, Performance, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Question: What can we do with the new Revit 2020 API features? Well, just like most of the existing functionality, the enhancements and some typical yet simple use cases for them are demonstrated by the updated SDK samples. Revit 2020 sports five brand new SDK samples – AttachedDetailGroup – CreateTrianglesTopography – Custom2DExporter – PathOfTravel – ViewTemplateCreation – This list also highlights some the most exciting areas of enhancement... Read more →
Posted on April 29, 2019 at 11:00 in 2020, Element Creation, Export, SDK Samples, Travel, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Let's look at a couple of scaling and triangle orientation issues that recently came up
– Transform and scaling in Forge
– ModPlus and scaling text in dockable panel
– Exporting view image extents
– Mesh triangle orientation
– PlanarFace
normal...
Read more →
Posted on March 20, 2019 at 11:00 in 2018, Export, Forge, Geometry, User Interface, View, Viewer | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
A solution to a longstanding question on the view template 'include' setting
– Does the Revit API provide any access to the view template 'include' settings defined by the check boxes in this form?
– I can get the 'includes' via viewTemplate.GetNonControlledTemplateParameterIds
.
The method returns a list of parameter ids, and you can then use viewTemplate.Parameters
to map them...
Read more →
Posted on November 01, 2018 at 11:00 in Data Access, Element Relationships, Settings, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Today, we focus on two pure programming questions from the Revit API discussion forum – Area of an exterior floor above a room – Mysterious element hiding activity... Read more →
Posted on September 27, 2018 at 11:00 in Algorithm, Analysis, Geometry, Getting Started, Parameters, Settings, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Today, we explore how to retrieve visible DWG geometry, i.e., geometry elements contained in a CAD import instance on a layer that is visible in the currently active view, and how to import an image to the foreground instead of the default background setting – Retrieve CAD import geometry on visible layer – Import image using foreground option... Read more →
Posted on May 16, 2018 at 11:00 in DWG, Geometry, Macro, Parameters, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
This is pretty obvious, once you think about it, and apparently worth pointing out anyway:
The outline defining a bounding box filter is always aligned with the cardinal axes
– Rotating Min
and Max
distorts the box
– Rotate target elements or use a solid filter...
Read more →
Here is a suggestion made by Arkady Gilman to align plan views. Before we get to that, I'd like to point out the imminent Forge accelerator in Boston – Boston Forge accelerator – Question on aligning plan views – Answer, view origin and outline – Suggestion for aligning views... Read more →
Posted on March 21, 2018 at 11:00 in Accelerator, Element Relationships, Forge, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
A recent discussion on using the ShowElements
method to toggle between documents and views brought up a few interesting points
– Open and active an unsaved document
– Zoom to selected elements
– Toggle between documents and views...
Read more →
Posted on March 08, 2018 at 11:00 in Algorithm, Utilities, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Some insight on the use of the MergedViews
property provided by the DGN, DWG and DWG export options classes and other ideas to export multiple views into a single DWG file
– Question: I want to combine and export multiple views into one single DWG file. I set the option MergedViews
, but the code still generates multiple DWG files for the views...
Read more →
Konrads Samulis shared a very nice solution to retrieve the crop box for a given view using a highly efficient parameter filter in
his comment on rotating a plan view.
In digging up this old thread, I found something quite curious in the API in 18.1, that I'm not sure was there before.
The method of using a temporary transaction (with rollback) to find the element id of the crop box was taking a very long time on a large model, so I did a bit of digging to see how I could improve it.
I noticed that in the built-in parameter ID_PARAM
of the crop box contains the element id of the view it's in.
E.g., the crop box 'points' to the id of the view it is in using ID_PARAM
...
Read more →
Posted on February 01, 2018 at 11:00 in Dynamo, Element Relationships, Filters, Performance, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Slabs created by an add-in are displayed perfectly in Revit 2015. In Revit 2016, they are not. What can be the problem? These slabs are located at an exorbitant distance from the origin. Relocating them closer to the origin resolves the problem... Read more →
Posted on November 29, 2017 at 11:00 in Units, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Question: How can I set the Material Render Appearance through the API?
I can see there is the Autodesk.Revit.DB.Visual.Asset
class, but how do I add to the list of Autodesk.Revit.DB.Visual.AssetProperty
objects for a new material?
Answer: The good news is that this is possible in Revit 2018.1 using the Visual Materials API.
Check out Boris Shafiro's class at AU to learn about it...
Read more →
Posted on November 20, 2017 at 11:00 in 2018, AU, Material, SDK Samples, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
One topic that keeps cropping up is how to purge different kinds of Revit database elements – Purge – Detecting empty views – JavaScript debugging tips – Collection from the past... Read more →
Posted on November 09, 2017 at 11:00 in Audio, Deletion, Filters, JavaScript, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Today, I have two important results to share based on hard work by Tim Burnham and Pierre Navarra – Download from Revit Server requires RSN.INI entry – Hiding a point cloud scan RCS in an RCP instance... Read more →
The Revit 2018.1.1 hotfix was released last week and solves an API issue that was already being discussed in the Revit API discussion forum. Further, Gui Talarico updated the online Revit API documentation for Revit 2018.1 – Revit and Revit LT 2018.1.1 released – CropBox setting in Revit 2018 API fixed – CropBox setting workaround – Revit 2018.1 API documentation online... Read more →
Posted on September 19, 2017 at 11:00 in 2018, Docs, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
A biggish post rather late in the week... still answering too many cases – Forge for AEC demos and sample code – Determining the starting view – Detecting installed Revit version – Detecting installed C3D version – Moving items inside a detail group – Filtering for family instances and types by family name... Read more →
Posted on August 17, 2017 at 11:00 in .NET, AU, Data Access, Element Relationships, Family, Forge, Geometry, Group, Installation, Parameters, Performance, RevitLookup, Utilities, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Minho re-opened the Revit API discussion forum thread on getting the ElementId of all visible entities in a viewport, providing a good opportunity to mention Colin Stark's answer to the StackOverflow thread on determining whether a FamilyInstance is visible in a View. Question: I am looking for code to get the ElementIds of all entities inside a viewport. A viewport is a region of a big view plan... Read more →
Posted on May 29, 2017 at 11:00 in Algorithm, Element Relationships, Filters, Performance, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
I am officially taking time off right now, but still jumping in here and there anyway, e.g. in an urgent case to reduce the RVT model file size before passing it into the Forge translator – RvtForgify – Forge read-write – Forge in an Enterprise Service Bus... Read more →
We discussed several examples of using the temporary transaction trick TTT in the past. Here is a new exquisitly subtle variant for you to enjoy, provided by Frank @Fair59 Aarssen to get the coordinates of the endpoints for a section marker line segment. Question: I have a section marker that I would like to rotate around one of the endpoints of the line segment leader, but I haven't been able to figure out how to determine the endpoint coordinates... Read more →
Posted on March 20, 2017 at 11:00 in Data Access, Geometry, Transaction, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Here is a summary of the discussion and solution for setting ActiveView
during the Idling
event from the Revit API discussion forum raised and solved by Rudi 'Revitalizer' and Kinjal Desai; As per API documentation, this operation should not be invalid: no open transactions; IsModifiable
is ok; IsReadOnly
is ok; No pre-action events around. However, trying to do so throws an InvalidOperationException
with the message "Setting active view is temporarily disabled"...
Read more →
Posted on February 09, 2017 at 11:00 in 2015, Events, External, Idling, User Interface, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
Today, let's recap the Revit API discussion forum thread on moving the location of a section vie raised by Danny Bentley, BIM Structural Technician at SOM in California, since Danny very kindly created a video and GitHub repo to demonstrate and share the solution, which will certainly be of use to others as well. By the way, Danny also writes Bentley's Revit Dynamo & API blog on his personal exploration of the Revit API and Dynamo... Read more →
Posted on February 07, 2017 at 11:00 in DMU, Element Relationships, Events, SDK Samples, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
I revisited the custom tooltip implementation that I prepared to demonstrate the Revit 2013 API features including the View API and its UIView
class. It class still provides the only possibility to convert back and forth between Revit model coordinates and Windows device screen points. That functionality can be combined with the ReferenceIntersector
to shoot a ray through the model to determine what Revit database element is located under the current cursor position and display a custom tooltip presenting information about it or anything else you please...
Read more →
Two topics today, on reordering viewports to determine their respective occlusion, and setting up a C++ Revit add-in project – Bringing a viewport to the front – Change the draw order of a viewport (bring to front) for cases when you need to use simplified duplicate of the same view for background, e.g., ceiling grid for example – Code clean-up – Setting up a Visual Studio C++ Revit add-in project... Read more →
Posted on December 15, 2016 at 11:00 in .NET, 2017, C++, Getting Started, Git, Markdown, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
The topic of how to determine all views in which a given element is visible has been discussed several times on the past, and a couple of viable solutions have been suggested.
However, for large projects, performance becomes an issue.
This question was raised again by Abba Lustgarten and Erik Eriksson in the Revit API discussion forum thread on finding views in which an element is visible (by geometry or actual visibility), with Erik sharing a View
extension method IntersectsBoundingBox
that helps alleviate the performance impact...
Read more →
Posted on December 07, 2016 at 11:00 in Algorithm, Element Relationships, Filters, Geometry, Photo, View | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API
I already created a starting point for the new roomedit3d incarnation last week, in its own repository. This week, I agreed with Philippe to retain the new project in an own branch within the Forge boilerplate code sample collection. Hopefully, that will simplify keeping my BIM sample synchronised with any future updates make to that. Now I need to get started implementing and testing the actual viewer extension functionality itself. My main topic today is something different and purely Revit API oriented, besides the next Forge session – Flipping a section view – Forge webinar series... Read more →
Posted on September 26, 2016 at 11:00 in 360, Accelerator, Cloud, Events, Filters, Forge, Getting Started, Hackathon, View, Viewer | Permalink | 0 Comments
Tags: akn_include, Jeremy Tammik, Revit API