The object of parameter optimization in the example is geometry that can be described in code. Can parameter optimization be performed on CAD geometry?
Can CAD geometry be optimized for parameters？
I think you’re looking for DiscreteGeometry:
Have a look at our geometry page in our user guide to see the different parameterizations of geometry we support in Modulus.