CompositeCurve
Form composite curves in 2D that has a sequence of child features of the following types: Polygon, CircularArc, InterpolationCurve, QuadraticBezier, and CubicBezier.
Syntax
model.component(<ctag>).geom(<tag>).feature().compositeCurves(<ftags>);
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>).feature().
removeCurveComponents(<childtags>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).setAttribute(attribute,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getAttribute(attribute);
Description
String remaining = model.component(<ctag>).geom(<tag>).feature().compositeCurves(<ftags>) creates or extends a CompositeCurve or Polygon feature by joining the curve features tagged <ftags>. These input features must be of one of the following types: Polygon, CircularArc, InterpolationCurve, QuadraticBezier, CubicBezier, or CompositeCurve. The returned string is the tag of the created or remaining feature.
String[] remaining = model.component(<ctag>).geom(<tag>).feature(<ftag>).feature().
removeCurveComponents(
<childtags>) removes the children with the given tags from the geometry feature list of the CompositeCurve feature tagged <ftag>. This can result in the CompositeCurve feature being split into several features. The remaining children can be reordered. The return array contains the tags of the remaining or created features.
The following properties are available::
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 | 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.
solid | curve
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
The following attributes are available:
Table 3-46: Valid attributes
on | off
Example
Create a composite curve that includes two previously created circular arcs, "ca1" and "ca2".
Code for Use with Java
Model model = ModelUtil.create("Model");
model.component().create("comp1");
GeomSequence g = model.component("comp1").geom().create("geom", 2);
g.create("ca1", "CircularArc");
g.feature("ca1").set("angle1", 225);
g.feature("ca1").set("angle2", 45);
g.create("ca2", "CircularArc");
g.feature("ca2").set("angle1", 225);
g.feature("ca2").set("angle2", 180);
g.feature().compositeCurves("ca1", "ca2");
g.run();
Code for Use with MATLAB
model = ModelUtil.create('Model');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom', 2);
g.create('ca1', 'CircularArc');
g.feature('ca1').set('angle1', 225);
g.feature('ca1').set('angle2', 45);
g.create('ca2', 'CircularArc');
g.feature('ca2').set('angle1', 225);
g.feature('ca2').set('angle2', 180);
g.feature().compositeCurves(['ca1';'ca2']);
g.run;
See Also
CircularArc, CubicBezier,  InterpolationCurve, Polygon, QuadraticBezier