Reference
Refer to another meshing sequence.
Syntax
model.component(<ctag>).mesh(<tag>).create(<ftag>,"Reference");
model.component(<ctag>).mesh(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).mesh(<tag>).feature(<ftag>).getType(property);
model.component(<ctag>).mesh(<tag>).feature(<ftag>).expand();
model.component(<ctag>).mesh(<tag>).feature(<ftag>).create(<ftag1>,ftype);
Description
Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"Reference") to refer to another meshing sequence. Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).create(<ftag1>,ftype) to add Scale attribute features.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).expand() to replace the reference with a copy of the referred sequence, where the attributes have been scaled with the scale attribute features of the reference.
The following properties are available:
Use the sequence property to specify another meshing sequence on the same geometry. When running the feature, all features of the specified sequence are run in the current context.
It is not allowed to introduce circular references.
Example
Create a mixed mesh with quads and triangles on a geometry. Create a second meshing sequence with a scale feature and a reference to the first meshing sequence. The result is a coarser version of the first mesh.
Code for Use with Java
Model model = ModelUtil.create("Model");
model.component().create("comp1");
GeomSequence g = model.component("comp1").geom().create("geom1", 2);
MeshSequence m1 = model.component("comp1").mesh().create("mesh1", "geom1");
 
g.create("sq1", "Square");
g.create("sq2", "Square");
g.feature("sq2").set("size", "0.5");
g.run();
 
m1.create("map1", "Map");
m1.feature("map1").selection().geom("geom1", 2).set(new int[]{1});
m1.create("ftri1", "FreeTri");
m1.feature("ftri1").selection().geom("geom1", 2).set(new int[]{2});
m1.run();
 
MeshSequence m2 = model.mesh().create("mesh2", "geom1");
m2.create("sca1", "Scale");
m2.feature("sca1").set("scale", "2");
m2.create("rf1", "Reference");
m2.feature("rf1").set("sequence", "mesh1");
m2.run();
Code for Use with MATLAB
model = ModelUtil.create('Model');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom1', 2);
m1 = model.component('comp1').mesh.create('mesh1', 'geom1');
 
g.create('sq1', 'Square');
g.create('sq2', 'Square');
g.feature('sq2').set('size', '0.5');
g.run();
 
m1.create('map1', 'Map');
m1.feature('map1').selection().geom('geom1', 2).set(1);
m1.create('ftri1', 'FreeTri');
m1.feature('ftri1').selection().geom('geom1', 2).set(2);
m1.run();
 
m2 = model.mesh().create('mesh2', 'geom1');
m2.create('sca1', 'Scale');
m2.feature('sca1').set('scale', '2');
m2.create('rf1', 'Reference');
m2.feature('rf1').set('sequence', 'mesh1');
m2.run();
See Also
Scale