Interval
Create one or several connected intervals in 1D.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"Interval");
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>,"Interval") to create one or more intervals. The following properties are available:
one | many
Use properties p1 and p2, or p.
on | off
all | obj | dom | bnd | off
Show selections, if selresult is on, of resulting objects in physics, materials, and so on, or in part instances. obj is not available in a component’s geometry. dom, bnd, and edg are not available in all features.
To specify one interval, set the properties p1 and p2. Then, intervals is automatically set to one.
To specify a sequence of connected intervals, set the property p. Then, intervals is automatically set to many.
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
Compatibility
model.component(<ctag>).geom(<tag>).create(<ftag>,"solid1") creates an interval.
Example
The following commands create a solid consisting of two intervals:
Code for Use with Java
Model model = ModelUtil.create("Model1");
model.component().create("comp1");
GeomSequence g = model.component("comp1").geom().create("geom1",1);
g.create("i1","Interval");
g.feature("i1").set("p","0 1 3");
g.run();
Code for Use with MATLAB
model = ModelUtil.create('Model1');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom1',1);
g.create('i1','Interval');
g.feature('i1').set('p','0 1 3');
g.run;
See Also
 BezierPolygon