FamilyInstance.ByGeometry not working in Revit 2022

I assume because of line 63 in the Python Node
GetFormatOptions(UnitType…
https://www.revitapidocs.com/2021.1/ca0891ed-ec2d-5a8b-8bc0-79ff5ff98ee5.htm

"This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `GetFormatOptions(ForgeTypeId)` overload instead."

Have a look at Solved: Re: ForgeTypeId how to use? - Autodesk Community to get more info about that change in the API.

Maybe there is even more need to adjustment in the Python code.

1 Like