Blogging despite having already exceeded my work quota for the week, but there is so much to share...
- ForgeFader user interface
- RevitLookup builds
- Purging types, families and materials
- Retrieving all family instances in a room
Cyrille Fauvel implemented the shaders displaying the calculated colour gradient texture in the Forge model, and Philippe Leefsma added a neat user interface to control the attenuation values, grid density, and turn on and off the display of the raycasting rays:
You can try it out for yourself in the forge-rcdb.autodesk.io Fader sample.
Do you use RevitLookup?
If not, you might be best off to stop whatever you are doing right now and install and test it first.
You will not regret.
It is simply an interactive Revit BIM database exploration tool to view and navigate element properties and relationships.
Peter Hirn of Build Informed GmbH very kindly set up a public CI for RevitLookup at lookupbuilds.com using Jenkins in a multi-branch project configuration to build all branches and tags from the GitHub repository. The output is dual-signed with the Build Informed certificate, zipped and published to an Amazon S3 bucket. For more information, please refer to the Revit API discussion forum thread on CI for RevitLookup.
The Revit API provides no direct access to purge, and this has been high on the add-in developer wish list for a long time, cf. the discussions on purging unused text note types and determining purgeable elements in general.
The former needs to handle and roll back if an error occurs due to attempting to delete the last type in a system family.
The latter uses the
DocumentChanged event, rolling back transaction groups, and other good things do find materials that can be deleted without elements being modified.
It takes a bit of time to run because it is deleting all materials and undoing the deletions that modify other elements.
Many thanks to Harry for implementing and sharing these long-standing wishes!
Question: I am interested in knowing the Revit family instances that are contained in a room. Apparently, Revit Rooms are currently not handled by the Revit to Forge translation. For a near term workaround, do you know of a Revit plug-in or script that generates a spreadsheet to report for each room in a model, the family instances contained by the room? I heard the Revit API's support this, but have not seen or verified it. The spreadsheet could be as simple as a three-column table that lists Room ID, Room Name, and Family Instance ID, where the ID is the Revit Element ID.
The lines L157-L217 implement code to retrieve the furniture and equipment contained in given room.