HoleFeature.setPositionAtCenter Method

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

Description

Redefines the position of the hole at the center of a circular or elliptical edge of the face.

To use this method, you need to position the timeline marker to immediately before this feature. This can be accomplished using the following code: thisFeature.timelineObject.rollTo(True)

Syntax

"holeFeature_var" is a variable referencing a HoleFeature object.
returnValue = holeFeature_var.setPositionAtCenter(planarEntity, centerEdge)
"holeFeature_var" is a variable referencing a HoleFeature object.

#include <Fusion/Features/HoleFeature.h>

returnValue = holeFeature_var->setPositionAtCenter(planarEntity, centerEdge);

Return Value

Type Description
boolean Returns true if successful.

Parameters

Name Type Description
planarEntity Base The planar BRepFace or ConstructionPlane object that defines the orientation of the hole. The natural direction of the hole will be opposite the normal of the face or construction plane.
centerEdge BRepEdge A circular or elliptical edge whose center point will be the position of the hole.

Version

Introduced in version August 2014