Rhino.Inside.Revit C# plugin for Revit

I’m developing a custom plugin in Revit 2024 using Rhino 8 and Rhino.Inside.Revit v1.31.9214.19602 to export selected elements to a Rhino .3dm file. Most elements export correctly, but I’m running into persistent issues with curtain wall mullions and model groups.

For curtain walls, the panels export to the correct positions, but the mullions appear scattered or misaligned in Rhino. I retrieve geometry using mullion.get_Geometry(...) and convert it via Rhino.Inside’s geometry converters, but I suspect I’m missing an instance transform — possibly because mullions are FamilyInstance-based and need to be transformed relative to the curtain grid.

Similarly, with model groups, some members export correctly, while others are offset or misaligned, especially when the group is rotated or mirrored in Revit. I loop through group.GetMemberIds() and convert each member’s geometry, but again, I may be missing the transform that positions the group instance correctly in world space.

Has anyone using this setup successfully handled transforms for hosted elements or model groups? Any insights or working patterns would be hugely appreciated. I have attached the Csharp script incase anyone is able to help me out. Cheers. @mcneelsoftware
Class1.cs (20.9 KB)