BaseFeature.updateBody Method
Parent Object:
BaseFeatureDefined in namespace "adsk::fusion" and the header file is <Fusion/Features/BaseFeature.h>
Description
Update an existing source BRepBody created by this BaseFeature. The input BRepBody definition will be copied into the existing BRepBody.
Syntax
"baseFeature_var" is a variable referencing a BaseFeature object.returnValue = baseFeature_var.updateBody(sourceBody, newBody) |
"baseFeature_var" is a variable referencing a BaseFeature object.
#include <Fusion/Features/BaseFeature.h>
returnValue = baseFeature_var->updateBody(sourceBody, newBody);
|
Return Value
| boolean |
Returns true if the body was updated, or false if the update failed. |
Parameters
| sourceBody |
BRepBody |
The source BRepBody to update. The source bodies of a BaseFeature are only available from the bodies collection of the BaseFeature when the BaseFeature is in edit mode. |
| newBody |
BRepBody |
The BRepBody whose definition will be used to replace the existing source body's definition. |
Version
Introduced in version January 2021