The GeometricRestriction object is the abstract base type for other GeometricRestriction objects. The GeometricRestriction object has no explicit constructor. The methods and members of the GeometricRestriction object are common to all objects derived from GeometricRestriction.
import optimization mdb.models[name].optimizationTasks[name].geometricRestrictions[name]
The GeometricRestriction object can have the following members:
A String specifying the geometric restriction repository key.
A Region object specifying the region to which the geometric restriction is applied. When used with a TopologyTask, there is no default value. When used with a ShapeTask, the default value is MODEL.