Use model.component(<ctag>).geom(<tag>).create(<ftag>,"Array") to create an array of geometry objects.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).selection("input") to select the objects to array. The default selection is empty.
If size is a scalar, a linear (oblique) array with size copies of the input objects is constructed. The displacement between two consecutive copies is given by the vector displ. The names of the output objects are
ftag(i), where
ftag is the tag of the feature, and
i is a 1-based index. If there are more than one input object, the output objects are named
ftag(i,in), where
in is a 1-based index corresponding to the input objects.
2D: If size is an array of length 2, a rectangular array with size[0]-by-size[1] copies of the input object is constructed. The x- and y-displacements are displ[0] and displ[1], respectively.
The names of the output objects are
ftag(i1,i2), where
ftag is the name of the feature, and
i1 and
i2 are 1-based indices. If there are more than one input object, the output objects are named
ftag(i1,i2,in), where
in is a 1-based index corresponding to the input objects.
3D: If size is an array of length 3, a three-dimensional (block shaped) array with size[0]-by-size[1]-by-size[2] copies of the input object is constructed. The x-, y-, and z-displacements are displ[0], displ[1], and displ[2], respectively.
The names of the output objects are
ftag(i1,i2,i3), where
ftag is the name of the feature, and
i1,
i2, and
i3 are 1-based indices. If there are more than one input object, the output objects are named
ftag(i1,i2,i3,in), where
in is a 1-based index corresponding to the input objects.
In COMSOL Multiphysics 5.2, the selresult property replaced the
createselection property.
createselection is still supported for backward compatibility.