Creates a new EditContext.
You might want to create a new EditContext when you want handles to work on a sub-shape, for example the base shape of an extruded shape.
The feature being edited or created.
The layer of the feature being edited or created.
Returns the edit settings configured for the current edit context.
The (sub)shape being edited or created.
This can differ from context.feature.shape
, for example when editing
the base shape of an extruded shape.
Typically, you want to use context.shape instead of context.feature.shape
.
This ensures editors and handles work correctly with subshapes and base shapes.
Provides context information to handles, such as the feature, its (sub)shape being edited or created.
Since
2022.1