CornerClosureFeature Object Preview

Derived from: Feature Object
Defined in namespace "adsk::fusion" and the header file is <Fusion/SheetMetal/CornerClosureFeature.h>

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.

Description

Defines a corner closure feature, providing methods to redefine the type of corner closure.

Methods

Name Description
classType

Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType().

createForAssemblyContext

Creates or returns a proxy for the native object - i.e. a new object that represents this object but adds the assembly context defined by the input occurrence.

deleteMe

Deletes the feature. This works for both parametric and non-parametric features.

dissolve

Dissolves the feature so that the feature information is lost and only the B-Rep geometry defined by the feature remains. This is only valid for non-parametric features.

setToOverlapAlignmentType

Set the alignment type to be an overlap. This is only valid when the current type is a symmetric gap alignment type.

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)

setToSymmetricGapAlignmentType

Set the alignment type to be a symmetric gap. This is only valid when the current type is an overlap alignment type.

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)

Properties

Name Description
alignmentType Gets the type of alignment used for the corner closure. The alignment type can be either a symmetric gap or an overlap. Use the setToSymmetricGapAlignmentType and setToOverlapAlignmentType methods to set the alignment type.
assemblyContext Returns the assembly occurrence (i.e. the occurrence) of this object in an assembly. This is only valid in the case where this is acting as a proxy in an assembly. Returns null in the case where the object is not in the context of an assembly but is already the native object.
attributes Returns the collection of attributes associated with this face.
baseFeature If this feature is associated with a base feature, this property will return that base feature. If it's not associated with a base feature, this property will return null.
bendTransition Gets and sets the bend transition type for the corner closure. This can be smooth, straight line, or trim to bend.

To set this property, you need to position the timeline marker to immediately before this feature. This can be accomplished using the following code: thisFeature.timelineObject.rollTo(True)
bodies Returns the bodies that were modified or created by this feature. This property works for both parametric and non-parametric features.

For a BaseFeature, this property has two different behaviors depending on if the BaseFeature is active for edit or not. When the base feature is active, this property returns the bodies owned by the base feature or the source bodies. When the base feature is not active, this property returns the result bodies.

When a body is added to a base feature, that body is owned by the base feature and is only seen in the UI when the base feature is active. This body is referred to as a "source body". Fusion creates a parametric copy of the body when you exit the base feature. This copy is referred to as the "result body," and it is used for subsequent modeling operations.

You can map between the source and result bodies by using their position within the bodies returned. To get a valid list of result bodies, you should roll the timeline to immediately after the base feature node in the timeline. Otherwise, subsequent operations could have done something to cause one or more bodies to no longer be available.
closureDefinition Gets the object that defines the closure for a 2 or 3 bend corner closure. The type of definition object returned will depend on the geometry of the dominant and submissive edges and can be determined by using the closureType property.
closureType Gets the type of corner closure defined. This is dependent on the geometry of the dominant and submissive edges and can be either a two-bend or three-bend corner closure.
dominantEdge Gets and sets the dominant edge for the corner closure

After setting the edge, the closureType property can be used to determine whether it is a two-bend or three-bend corner.
entityToken Returns a token for the Feature object. This can be saved and used at a later time with the Design.findEntityByToken method to get back the same feature.

When using entity tokens it's important to understand that the token string returned for a specific entity can be different over time. However, even if you have two different token strings that were obtained from the same entity, when you use findEntityByToken they will both return the same entity. Because of that you should never compare entity tokens as way to determine what the token represents. Instead, you need to use the findEntityByToken method to get the two entities identified by the tokens and then compare them.
errorOrWarningMessage Returns the error or warning message in the case where the healthState property returns either WarningFeatureHealthState or ErrorFeatureHealthState. Otherwise this property returns an empty string.
faces Returns the faces that were created by this feature. This works for both parametric and non-parametric features.

Depending on the modifications made to the body after the feature was created, this may not return all of the faces. For example, when a component is created from a body, the original body and its faces no longer exist, so this won't return any faces. However, you can roll the timeline to immediately after the feature, and all the original faces will be available.
gap Gets the parameter that controls the gap distance. To edit the value, use properties on the returned ModelParameter object.
healthState Returns the current health state of the feature.
isOverlapFlipped Gets and sets if the overlap is flipped which defines if the dominant edge goes over the submissive edge or vice versa. This is only used when the alignment type is set to overlap (alignmentType is OverlapCornerClosureAlignmentType) and is ignored for symmetric gap alignment type.

To set this property, you need to position the timeline marker to immediately before this feature. This can be accomplished using the following code: thisFeature.timelineObject.rollTo(True)
isParametric Indicates if this feature is parametric or not.
isSuppressed Gets and sets if this feature is suppressed. This is only valid for parametric features.
isValid Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.
isWidthExtentAligned Gets and sets how the shape of the extent is defined in relation to the flange edges. This property controls whether the corner closure extends along the flange edges, aligned with the edge direction. When false, it extends the corner closure perpendicular to the flange edges.

To set this property, you need to position the timeline marker to immediately before this feature. This can be accomplished using the following code: thisFeature.timelineObject.rollTo(True)
linkedFeatures Returns the set of features that are linked to this feature. The set of linked features are all of the features that were created in various components as the result of a single feature being created in the user interface.
name Returns the name of the feature as seen in the browser (non-parametric) or in the timeline (parametric).
nativeObject The NativeObject is the object outside the context of an assembly and in the context of its parent component. Returns null in the case where this object is not in the context of an assembly but is already the native object.
objectType This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.

It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType():
overlap Gets the parameter that controls the overlap percentage when using an overlap alignment type. It is a value between 0 and 1 and defines the percentage of overlap where 0 is no overlap and 1 is 100% overlap. This is only used when the alignment type is set to overlap (alignmentType is OverlapCornerClosureAlignmentType) otherwise it returns null. To set the value use properties on the returned ModelParameter object.
parentComponent Returns the parent component that owns this feature.
submissiveEdge Gets and sets the submissive edge for the corner closure

After setting the edge, the closureType property can be used to determine whether it is a two-bend or three-bend corner.
timelineObject Returns the timeline object associated with this feature.

Accessed From

CornerClosureFeature.createForAssemblyContext, CornerClosureFeature.nativeObject, CornerClosureFeatures.add, CornerClosureFeatures.item, CornerClosureFeatures.itemByName

Version

Introduced in version January 2026