Rectangle
Create a solid or curve rectangle in 2D.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"Rectangle");
model.component(<ctag>).geom(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getType(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).setAttribute(attribute,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getAttribute(attribute);
Description
Use model.component(<ctag>).geom(<tag>).create(<ftag>,"Rectangle") to create a rectangle. The following properties are available:
corner | center
Positions the object either centered about pos or with the lower-left corner in pos.
none | custom | integer between 1 and the number of colors in the current theme
The color to use. Active when color is set to custom.
on | off
on | off
on | off
on | off
on | off
all | obj | dom | bnd | pnt | off
Show selections, if selresult is on, in physics, materials, and so on; in part instances; or in 3D from a plane geometry. obj is not available in a component’s geometry. dom, bnd, and edg are not available in all features.
solid | curve
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
Additional properties are available with the Design Module, see Rectangle.
The following attributes are available:
Table 3-143: Valid attributes
on | off
Compatibility
model.component(<ctag>).geom(<tag>).create(<ftag>,"rect2") creates a solid rectangle.
model.component(<ctag>).geom(<tag>).create(<ftag>,"rect1") creates a curve rectangle.
The following properties are also available:
lx, ly
x, y
The property const is no longer available.