Hi,
I just tried Rhino inside (Revit) and really like the opportunities this offers! Great work!
As a trial project I tried to import a number of bricks with different materials forming a pattern and noticed that the current Rhino inside source code of the Revit.Bake command uses this Revit API call:
public static DirectShape CreateElement(
Document document,
ElementId categoryId,
string appGUID,
string appDataGUID
)
This applies the material used as default for the category to the direct shape. Unfortunately this method only allows top level categories ( and not even all of those thanks to some Revit limitations).
Will there be an implementation of the Revit.Bake command which uses the TesselatedShapeBuilder class instead here.)?
Benefit is that a material can be assigned to the face of each direct shape independent of the category chosen.
( My very basic trial node is attached…Note that it includes some error reporting…)
Thank you!
Jan
CreateTessalatedRevitShapes_V2.gh (9.7 KB)