Contour Lines, Batch Processor and Dynamo Shapely

Powerful tools and solutions for batch processing, 2D geometric analysis and toposolids:

Revit Batch Processor Sample Code

Several years ago, we pointed out the powerful Revit Batch Processor (RBP).

Jan Christel has implemented and shared a number of Python code samples making use of it in his code samples for the Revit Batch Processor, explaining:

I’ve been following your website for a number of years by know and would like to say thank you for your posts and insights. They are a really great help when getting started with the Revit API. For the last 3 years I’ve been developing code using the Revit API in context of the Revit Batch Processor project which you are familiar with. The library has now grown to reasonable size and might be useful for others too. It focusses mainly on reporting and modifying element data and families. It showcases how to start a number of batch processor sessions concurrently using either .bat or PowerShell to process a large number of files. Here are links to the SampleCodeRevitBatchProcessor GitHub repo and the DuHast PyPI package.

Many thanks to Jan for sharing these.

Shapely for Dynamo

We recently discussed the Shapely Python 2D geometry library and how it can be used to find and fix a hole.

Durmuş Cesur (Bayryam) of BPA Architecture announced an associated Dynamo package to wrap it and provide access to its functionality:

Durmuş adds:

I read your article about Shapely Geometry in the last weeks. I was very happy to see it, because in April I released a package called Shapely for Dynamo, so that users can easily work with Shapely Geometries. I am a BIM Manager, the Shapely package plays an incredible role in our daily work and in the plug-in of the office. I care a lot about this package because apart from manipulating geometries, it is now integrated with Machine Learning. In the following days, I will release the "1.1.1.1" version of the package and users will be able to use their scenarios with Machine Learning training models via Shapely, and as a Dynamo user for many years, I am very excited. I just published an article about the Shapely Machine Learning relationship in Dynamo on LinkedIn.

Shapely for Dynamo

Shapely is a great Python library that helps us analyse and manipulate geometries. We think it is important to include this library in Dynamo. Shapely uses its own geometry language. Therefore, transformations must be made between each other without losing data. In this package you will find a Dynamo version of Shapely geometry. I made a tutorial for you on the Github page; you can use it to get a feel for the polygons and let me know if you have any questions or corrections. The package is completely open source. I am one of those people who think open source is important!

Here are some examples:

Many thanks to Durmuş for implementing and sharing this powerful tool!

Machine Learning in Dynamo

Durmuş adds: A few days ago I wrote an article about Machine Learning on DynamoBlog. Today a copy of this article was published somewhere at NASA. This is incredible news. I wanted to share it with you. You can find it here: Machine Learning in Dynamo:

With advancing technology, we see the widespread use of Machine Learning in almost all industries. But can a vector-based numerical design program work with ML? The answer to this question is a definite “Yes, it can.” The “Shapely geometry” package not only allows users to manipulate 2D geometries but also integrates seamlessly with ML. In other words, the “Shapely” package comes equipped with ML capabilities, making it more functional and significantly expanding its processing capacity.

Retrieve Toposolid Contour Lines

Ning Zhou raised the question on how to get contour lines from toposolid and subsequently discovered, tested and shared the solution.

The gist of it is that the contour lines are view dependent, so you need to be specific about which view to use to retrieve the toposolid geometry.

My colleague Carol Gitonga picked up this thread to publish her first Revit API blog post, also titled how to get contour lines from Toposolid.

Congratulations, Ning, on solving the issue!

Congratulations, Carol, on a very nice blogging debut!

Thank you both for your work and sharing the results!

Internet Artifacts

Finally, let's close with an entertaining look back in time through a collection of internet artifacts by Neal.fun.