Knit
Knit surface CAD objects to form solids or surface objects.
Syntax
model.component(<ctag>).geom(<tag>).feature().create(<ftag>,"Knit");
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(<ftag>).feature().create(<ftag>,"Knit") creates a knit feature tagged <ftag>. The following properties are available.
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.
This function also removes gaps and spikes that are within the absolute tolerance specified in the property repairtol.
The following attributes are available:
Table 3-51: 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 knits the surface objects into a solid. A gap is also removed during the operation.
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("knit1","Knit");
model.component("comp1").geom("geom1").feature("knit1").selection("input").set("imp1");
model.component("comp1").geom("geom1").feature("knit1").set("repairtol",1e-3);
model.component("comp1").geom("geom1").runAll();
See Also
Repair