A Preset defines the material specific properties of a Tool.
| 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(). |
| Name | Description |
| attributes | Returns the collection of attributes associated with this preset. Attributes are arbitrary key-value pairs organized into groups that can be used to store custom metadata on a preset. |
| id | Gets and sets the identifier of that Preset. The id can be used to select a Preset for a Operation. |
| isValid | Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference. |
| name | Gets and sets the name of that Preset. |
| 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(): |
| parameters | Gets the CAMParameters collection for this Preset. |
| supportedFinishingStrategies | Gets the supported finishing strategies for a Preset. |
| supportedRoughingStrategies | Gets the supported roughing strategies for a Preset. |
| supportedStockMaterials | Gets and sets the stock materials that this Preset is associated with.When getting, each stored material name is resolved against stock material libraries. Names that no longer exist in either library are returned as transient StockMaterial objects that contain only the stored name. When setting, each StockMaterial must exist in the stock material library. A Preset stores only the name of each stock material, not a reference to an entry in the stock material library. If multiple library materials share the same name, the getter returns the first match found. |
| Name | Description |
| Manufacturing Workflow API Sample | Manufacturing Workflow API Sample. This sample script starts by creating a simple component, which is then used to describe a milling workflow. It creates a setup and a few operations, picks tools from a Fusion sample tool library using loops and queries, and post-processes the operations using an NC program. |