SurfaceDeleteFaceFeatures.add Method

Parent Object: SurfaceDeleteFaceFeatures
Defined in namespace "adsk::fusion" and the header file is <Fusion/Features/SurfaceDeleteFaceFeatures.h>

Description

Creates a new SurfaceDeleteFaceFeature feature. This deletes the specified faces from their bodies without any attempt to heal the openings. This is equivalent to selecting and deleting faces when in the Patch workspace.

Syntax

"surfaceDeleteFaceFeatures_var" is a variable referencing a SurfaceDeleteFaceFeatures object.

returnValue = surfaceDeleteFaceFeatures_var.add(facesToDelete)
"surfaceDeleteFaceFeatures_var" is a variable referencing a SurfaceDeleteFaceFeatures object.

#include <Fusion/Features/SurfaceDeleteFaceFeatures.h>

returnValue = surfaceDeleteFaceFeatures_var->add(facesToDelete);
"surfaceDeleteFaceFeatures_var" is a variable referencing a SurfaceDeleteFaceFeatures object.

returnValue = surfaceDeleteFaceFeatures_var.add(facesToDelete);

Return Value

Type Description
SurfaceDeleteFaceFeature Returns the newly created SurfaceDeleteFaceFeature object or null if the creation failed.

Parameters

Name Type Description
facesToDelete Base A single BRepFace or an ObjectCollection containing multiple BRepFace objects.

Samples

Name Description
DeleteFace Feature API Sample

Demonstrates creating a new deleteFace feature.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

Version

Introduced in version August 2016