
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.
Collection object that controls which edges are used to define a flange feature that is added to the edges of a body.
| Name | Description |
| addFullLengthEdge |
Adds a new edge where the flange extends the full length of the edge. |
| addSymmetricEdge |
Adds a new edge where the flange is centered at the midpoint of the edge and the width defines the distance from the center of the edge to each side of the flange. So the total width of the flange is twice the width value. |
| addTwoOffsetsEdge |
Adds an edge that defines a flange that extends the full length of the edge, but where offset values define the offset of each side of the flange from each end of the edge. |
| addTwoSidedEdge |
Adds an edge with independent widths on each side. The flange is centered on the midpoint of the edge but the input distances independently define the width of each side of the flange as measured from the midpoint of the edge. |
| 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(). |
| item |
Function that returns the specified flange edge using an index into the collection. |
| Name | Description |
| count | Returns the current number of edge definitions that have been defined. |
| isValid | Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference. |
| 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(): |
| Name | Description |
| Flange Feature Sample | Demonstrates accessing and creating sheet metal flange features including base flange, contour flange, and edge flange. To run the sample script, have a design open in Fusion's DESIGN workspace that contains a sheet metal body in the root component. The body must have at least one linear edge on its outside that is valid for a flange. A design created with the Sheet Metal > Create > Flange commands, or any design containing a base flange, satisfies this. The script first iterates over any flange features that already exist in the design and reads the settings from each definition, so the reading portion reports nothing if the design has no flanges yet. It then finds the first linear edge on the first body in the root component and uses it to create a new edge flange feature. Reading the edges back from the created feature requires rolling the timeline marker to immediately before the feature, which the script does using TimelineObject.rollTo. |