Ellipse
Create a solid or curved ellipse in 2D.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"Ellipse");
model.component(<ctag>).geom(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getType(property);
Description
Use model.component(<ctag>).geom(<tag>).create(<ftag>,"Ellipse") to create an ellipse. The following properties are available:
corner | center
Positions the object either centered about pos or with the lower left corner of surrounding box 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
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.
Compatibility
model.component(<ctag>).geom(<tag>).create(<ftag>,"ellip2") is a solid ellipse.
model.component(<ctag>).geom(<tag>).create(<ftag>,"ellip1") is an ellipse curve.
The following properties are also available:
a, b
Alias for semiaxes.
x, y
The property const is no longer available.
Example
The following sequence creates a solid ellipse:
Code for Use with Java
Model model = ModelUtil.create("Model1");
model.component().create("comp1");
GeomSequence g = model.component("comp1").geom().create("geom1",2);
g.create("e1","Ellipse");
g.feature("e1").set("semiaxes","1 0.3");
g.feature("e1").set("rot",45);
g.run();
Code for Use with MATLAB
model = ModelUtil.create('Model1');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom1',2);
g.create('e1','Ellipse');
g.feature('e1').set('semiaxes','1 0.3');
g.feature('e1').set('rot',45);
g.run;
See Also
Circle