Delete
Delete vertices, edges, faces, domains, or geometric objects.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"Delete");
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
Use model.component(<ctag>).geom(<tag>).create(<ftag>,"Delete") to delete geometric entities.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).selection("input") to select the entities to delete. To set the selection level for the selection object, and to select the input entities see Geometry Object Selection Methods.
The default selection is empty.
none | custom | integer between 1 and the number of colors in the current theme
4.2a | 4.3
The color to use. Active when color is set to custom.
on | off
all | obj | dom | bnd | edg | pnt | off
Show selections, if selresult is on, in physics, materials, and so on; in part instances; or in 3D from a plane geometry. obj is not available in a component’s geometry. dom, bnd, and edg are not available in all features.
Deleting a domain, face, or edge automatically deletes all lower-dimensional adjacent entities, except those needed to bound surviving entities.
In 2D and 3D, vertices that are adjacent to an edge cannot be deleted.
In 3D, an edge can be deleted if it has no adjacent faces, or if it is interior to a face.
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
The following attributes are available:
Table 3-63: 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.
Compatibility
In version 4.3, the algorithm was changed slightly. The main difference is that the old algorithm preserved the object type for solid, surface, and curve objects. To get the old behavior, set compat to 4.2a.
model.component(<ctag>).geom(<tag>).create(<ftag>,"del") creates a Delete feature.
Example
Delete face 5 from a surface block:
Code for Use with Java
Model model = ModelUtil.create("Model1");
model.component().create("comp1");
GeomSequence g =model.component("comp1").geom().create("geom1",3);
g.create("blk1","Block");
g.feature("blk1").set("type", "surface");
g.run("blk1");
g.create("del1","Delete");
g.feature("del1").selection("input").set("blk1",5);
g.run();
Code for Use with MATLAB
model = ModelUtil.create('Model1');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom1',3);
g.create('blk1','Block');
g.feature('blk1').set('type', 'surface');
g.run('blk1');
g.create('del1','Delete');
g.feature('del1').selection('input').set('blk1',5);
g.run;
See Also
Compose, Union, Intersection, Difference, Extract