Hey just my humble notesas I’m on the same journey and apolIogies I don’t have a polished solution. I recently jumped into the Rhino.Inside Revit this morning. Was hoping to do some curtian wall magic, but I saw that section in the guides is still on “under development”.
I do a little in both C# and python and the I’m looking at the API documentation online.
It requires a little “conversion” when reading the c# documentation and trying to write a python script.
For instance in c#
var point = pointFromRevit.ToPoint3d();
would be in python:
point = Convert.Geometry.GeometryDecoder.ToPoint3d(point_from_revit)
See attached as an example where i project the grid lines in revit to 2d lines in rhino. grid lines 2d.gh (4.5 KB)
And if you wanted to make a FillRegionType then I cannot find any constructor for it. So you might look into the .duplicate() on an existing FillRegionType and then change it’s properties (variables).
Take a look at them here: ApiDocs.co
Hi @sonderskovmathias that is excellent, at the moment I am struggling more with the revit API and how I convert the C# into python? do you have a good method to do that and then also how do I know what the inputs and outputs should be?