Use model.component(<ctag>).geom(<tag>).create(<ftag>,"Polygon") to create a polygon or a line segment. The following properties are available
|
|
|
|
|
|
|
If source is file, the file that contains the vertex coordinates.
|
|
|
|
|
|
|
|
The vertex coordinates when source is table, size N*sdim.
|
|
|
|
Object type. solid is not available in 3D.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
all | obj | dom | bnd | edg | 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.
|
|
|
|
|
|
this | Part Instance feature
|
|
|
|
xyplane | Work plane feature
|
|
|
If type is
open or
closed, a curve consisting of line segments is constructed. If
type is
solid, the solid enclosed by such a closed polygon is constructed. If
type is
closed or
solid, but the first and last control points are different, an extra segment is added to close the curve.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).importToTable() to read data from the file defined by the
filename property and store the data in the
table property. The
source property is also changed to
table.
If source is
file, the polygon is not automatically rebuilt when the data in the file changes. Use
model.component(<ctag>).geom(<tag>).feature(<ftag>).importData() to rebuild the polygon after such a change.
model.component(<ctag>).geom(<tag>).create(<ftag>,"line1") constructs an open polygon.
model.component(<ctag>).geom(<tag>).create(<ftag>,"poly1") constructs a closed polygon.
model.component(<ctag>).geom(<tag>).create(<ftag>,"line2") or
model.component(<ctag>).geom(<tag>).create(<ftag>,"poly2") constructs a solid polygon.