SolidSolidCutUtils.AddCutBetweenSolids(Document, Element, Element, Boolean)
Method
Description:
Adds a solid-solid cut for the two elements with the option to control splitting of faces of the cutting solid.
Adds a solid-solid cut for the two elements with the option to control splitting of faces of the cutting solid.
Syntax
public static void AddCutBetweenSolids(
Document document,
Element solidToBeCut,
Element cuttingSolid,
bool splitFacesOfCuttingSolid
)
Parameters
Parameter | Type | Description |
---|---|---|
document | Document | The document containing the two elements. |
solidToBeCut | Element | The solid to be cut. |
cuttingSolid | Element | The cutting solid. |
splitFacesOfCuttingSolid | Boolean | True to split faces of cutting solid where it intersects the solid to be cut, false otherwise. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentException | The element must be in a project document or in a conceptual model, pattern based curtain panel, or adaptive component family. -or- The element does not meet the condition that it must be solid and must be a GenericForm, GeomCombination, or a FamilyInstance. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | Failed to add solid-solid cut for the two elements. |