Loft
Create a lofted surface through a set of profile curves.
Syntax
model.component(<ctag>).geom(<tag>).feature().
    create(<ftag>,"Loft");
model.component(<ctag>).geom(<tag>).feature(<ftag>).
    selection(property);
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
model.component(<ctag>).geom(<tag>).feature().
      create(<ftag>,"Loft")
creates a Loft feature.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).
selection("profile")
to select loft profiles that are not specified as start or end profiles. The default selection is empty.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).
selection("startprofile")
to select the loft start profile. The default selection is empty.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).
selection("endprofile")
to select the loft start profile. The default selection is empty.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).
selection("guide")
to select guide curves that are not specified as start or end guide curves. The default selection is empty.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).
selection("startguide")
to select the start guide curve. The default selection is empty.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).
selection("endguide")
to select the end guide curve. The default selection is empty.
on | off
on | off
on | off
solid | surface
minimal | columns | grid
on | off
notprescribed | parallel | perpendicular | atangle
profilefaces | adjacent | profileedges
notprescribed | parallel | perpendicular | atangle
profilefaces | adjacent | profileedges
notprescribed | parallel
notprescribed | parallel
on | off
all | obj | dom | bnd | edg | pnt | off
Show selections 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.
on | off
For information about the selresult, selresultshow and contributeto properties, search the online help in COMSOL Multiphysics to locate and search the documentation.
The following attributes are available:
Table 3-55: Valid attributes
on | off | inherit
Designate the resulting objects as construction geometry. Use inherit to set the construction geometry attribute only if all input objects are construction geometry.
Example
Create a cylinder from two disc profiles. This illustrates two different ways of specifying the profile.
Model model = ModelUtil.create("Model1");
model.component().create("comp1");
model.component("comp1").geom().create("geom1",3);
model.component("comp1").geom("geom1").geomRep("cadps");
model.component("comp1").geom("geom1").feature().
      create("wp1", "WorkPlane");
model.component("comp1").geom("geom1").feature("wp1").geom().
      create("c1", "Circle");
model.component("comp1").geom("geom1").create("copy1", "Copy");
model.component("comp1").geom("geom1").feature("copy1").
      selection("input").set(new String[]{"wp1"});
model.component("comp1").geom("geom1").feature("copy1").
      set("displz", "1");
model.component("comp1").geom("geom1").create("loft1", "Loft");
model.component("comp1").geom("geom1").feature("loft1").
      selection("profile").set(new String[]{"wp1"});
model.component("comp1").geom("geom1").feature("loft1").
      selection("startprofile").init(1);
model.component("comp1").geom("geom1").feature("loft1").
      selection("startprofile").
      set("copy1", new int[]{1, 2, 3, 4});
model.component("comp1").geom("geom1").run();