CircularArc
Create a circular arc in 2D.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"CircularArc");
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>,"CirularArc") to create a circular arc in 2D. The following properties are available:
on | off
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.
center | endsr | endsangle1 | endsangle2
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.
on | off
solid | curve
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
Additional properties are available with the Design Module, see CircularArc.
The following attributes are available:
Table 3-40: Valid attributes
on | off
Example
The sequence below creates a circular arc that is a half circle with the center in (0.5, 0.5) and endpoints in (0, 0) and (1, 1), specified using the center, radius, and angles.
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("ca1", "CircularArc");
g.feature("ca1").set("center", new double[]{0.5, 0.5});
g.feature("ca1").set("r", 0.707106781187);
g.feature("ca1").set("angle1", 225);
g.feature("ca1").set("angle2", 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('ca1','CircularArc');
g.feature('ca1').set('center',[0.5, 0.5]);
g.feature('ca1').set('r', 1/sqrt(2));
g.feature('ca1').set('angle1', 225);
g.feature('ca1').set('angle2', 45);
g.run;
See Also
 Circle, CompositeCurve