Compose, Union, Intersection, Difference
Compose objects using a Boolean set formula.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"Compose");
model.component(<ctag>).geom(<tag>).create(<ftag>,"Union");
model.component(<ctag>).geom(<tag>).create(<ftag>,"Intersection");
model.component(<ctag>).geom(<tag>).create(<ftag>,"Difference");
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>,operationName) to combine geometric objects in different ways.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).selection(property) to select the objects to combine. The default selection is empty.
The following properties are available:
...geom(<tag>).
absRepairTol()
none | custom | integer between 1 and the number of colors in the current theme
The color to use. Active when color is set to custom.
on | off
on | off
on | off
on | off
on | off
...geom(<tag>).
repairTol()
auto | relative | absolute
...geom(<tag>).
repairTolType()
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.
The following Boolean operation is performed:
For Compose, the input objects are combined using the set formula in the property formula. The operators +, *, and - correspond to the set operations union, intersection, and difference, respectively. The precedence of the operators + and - are the same. * has higher precedence.
For Union, the objects in input are united.
For Intersection, the objects in input are intersected.
For Difference, the objects in input2 are subtracted from the union of the objects in input to form a set difference.
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
The following attributes are available:
Table 3-43: 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 properties are also supported, see the Delete feature:
all | none
all | none
all | none
The property out is no longer available.
See Also
ConvertToSolid, ConvertToSurface, ConvertToCurve, ConvertToPoint, Finalize, Partition