Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"SizeExpression") to specify a mesh element size expression in the sequence. Use
model.component(<ctag>).mesh(<tag>).feature(<ftag>).create(<ftag1>,"SizeExpression") to specify an element size expression for the feature
<ftag> that can be any of the types
Edge,
FreeQuad,
FreeTri, or
FreeTet.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() or
model.component(<ctag>).mesh(<tag>).feature(<ftag>).feature(<ftag1>).selection() to specify the geometric entity selection. If you do not specify any selection, the size expression feature is defined on all geometric entities.
You can use mesh.feature(<ftag>).importData() to reevaluate the size expression, taking an updated model into account.
For the horder property, its value is automatically calculated in the adaptation algorithm. It is used only when the Element selection method is set to Rough global minimum.