Repair
Repair CAD objects.
Syntax
model.component(<ctag>).geom(<tag>).feature().create(<ftag>,"Repair");
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>,"Repair")
creates a repair feature tagged <ftag>. The following properties are available.
on | off
on | off
on | off
on | off
on | off
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
on | off
The function tries to remove or repair the following geometric and topological errors:
The function can also remove small geometric details including short edges, small faces, sliver faces, and spikes.
The following attributes are available:
Table 3-75: 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
The following property is no longer supported:
stx | ftx | ctx | ptx
Example
The following example imports the file repair_demo_2.x_b, and repairs the resulting objects.
Model model = ModelUtil.create("Model1");
model.component.create("comp1");
model.component("comp1").geom().create("geom1",3);
model.component("comp1").geom("geom1").feature().create("imp1","Import");
model.component("comp1").geom("geom1").feature("imp1").set("filename", "repair_demo_2.x_b");
model.component("comp1").geom("geom1").runAll();
model.component("comp1").geom("geom1").feature().create("rep1","Repair");
model.component("comp1").geom("geom1").feature("rep1").selection("input"). set("imp1");
model.component("comp1").geom("geom1").feature("rep1").set("repairtol",1e-3);
model.component("comp1").geom("geom1").runAll();
See Also
Check, Knit