Use model.geom(<tag>).feature().create(<ftag>,"Import") to create a geometry import feature.
When the property filename is set to a file recognized as an ECAD file, the property
ecadtype is automatically initialized to either
gds,
ipc2581, or
odb++. The following properties are available:
The file specified by filename can be of any of the following formats:
The property ecadtype determines which properties are available, see
Table 3-2 for supported types. The property
ecadtype is read only, and it is automatically initialized from the property
filename, according to
Table 3-2.
The property importlayer determines which layers to import. It is a string array of the same length as the number of layers, holding the strings
on or
off. The property is initialized with a valid default when setting the property
filename.
It returns a String[][], with the same number of rows as the number of layers, that contains information about each layer.
The property height determines the height of all layers. It is a string array of the same length as the number of layers, holding string representations of the layer height, for example
1[mm]. The property is initialized with a valid default when setting the property
filename.
The property manualelevation controls how imported layers are positioned in the Z direction. When
manualelevation is
off, the imported layers are stacked on top of each other with no gaps, so the
Z positions are computed from the
height property. When
manualelevation is
on and grouping is set to
layer or
none, the imported layers are positioned in the
Z direction as specified by the
elevation property. To switch to manual control of elevations it is recommended to first set
manualelevation to
on, then set the values for the
height and
elevation properties.
The property elevation determines the
Z-position of all layers. It is a string array of the same length as the number of layers, holding string representations of the layer elevation. The property is initialized with a valid default on these occasions:
If selresult is set to
on, a selection is created for all resulting entities of each type (object, domain, boundary, edge, and point), for use in the geometry sequence. To access the object selection, use
model.geom(<tag>).selection(<ftag>), where
<tag> is the geometry tag and
<ftag> is the feature tag. To access the other selections, use
model.geom(<tag>).selection(<ftag>.<lvl>), where
<tag> is the geometry tag,
<ftag> is the feature tag, and
<lvl> is one of
dom,
bnd,
edg, or
pnt. If, in addition,
selresultshow is set to a value other than
off, all or some of these selections appear for use outside the geometry sequence. To access these selections, use
model.selection(<tag>_<ftag>_<lvl>), where
<tag> is the geometry tag,
<ftag> is the feature tag, and
<lvl> is one of
dom,
bnd,
edg, or
pnt.
If sellayer is set to
on, a selection is created for all resulting entities of the types object, domain, and boundary, of each layer, for use in the geometry sequence. To access the object selections, use
model.geom(<tag>).selection(<ftag>_<otag>), where
<otag> is a tag derived from the name of the imported layer.
<otag> is derived by replacing space and dot characters with underscore characters and removing other characters that are not numbers or uppercase or lowercase English characters (A–Z and a–z). Additionally, if required to make
<otag> unique,
_<m> is appended, where
<m> is an integer. To access the other selections, use
model.geom(<tag>).selection(<ftag>_<otag>.dom) or
model.geom(<tag>).selection(<ftag>_<otag>.bnd), where
<otag> is a tag derived from the name of the imported layer. If, in addition,
sellayershow is set to a value other than
off, all or some of these selections appear for use outside the geometry sequence.
To access these selections, use model.selection(<tag>_<ftag>_<otag>_dom) or
model.selection(<tag>_<ftag>_<otag>_bnd), where
<otag> is a tag derived from the name of the imported layer.
When findarcs is
auto or
manual, line segments are combined to form arcs. If
findarcs is
manual, the properties
arcdistancetol,
arcradiustol,
arcminangle,
arcmaxangle, and
findlines can be used to tune the arc recognition algorithm, otherwise the algorithm tries to determine optimal parameters.
To access net selections, use model.selection(<tag>_<ftag>_<ntag>_dom) or
model.selection(<tag>_<ftag>_<ntag>_bnd), where
<ntag> is the tag of the net selection.