FamilyType.By Geometry Error in Revit 2022

The solid geometry Scaled … Is this way to work with all versions?

From 2022 you will need to scale the geometry to match the internal units (decimal feet).