
This 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.
This class defines the methods and properties that pertain to the definition of a corner closure feature.
| 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(). |
| setToOverlapAlignmentType |
Set the alignment type to be an overlap. |
| setToSymmetricGapAlignmentType |
Set the alignment type to be a symmetric gap. When a new input is created, it defaults to being a symmetric gap alignment, so it's not required to call this method to set it to that type. |
| 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. |
| bendTransition | Gets and sets the bend transition type for the corner closure. This can be smooth, straight line, or trim to bend. When the input is created, this defaults to smooth. |
| 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. |
| gap | Gets and sets the gap distance. This value will be used to create the parameter that defines the corner gap. If it is a real value it will be interpreted as centimeters. If it is a string it behaves the same as entering the value in the command dialog. A string like "0.25" will be 0.25 of whatever the current design units are. You can also specify the units as part of the string so "0.25 in" is valid. You can also define equations like "Thickness / 2" where Thickness is the name of an existing parameter. |
| 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. |
| 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. When the input is created this defaults to true. |
| 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 and sets the overlap percentage when using an overlap alignment type. This is only used when the alignment type is set to overlap (alignmentType is OverlapCornerClosureAlignmentType) and is ignored for symmetric gap alignment type. The ValueInput can be defines a unitless value between 0 and 1 where 0 is no overlap and 1 is 100% overlap. This can be a real value or a string that evaluates to a unitless real value. A parameter will be created that uses the string as its expression. |
| 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. |