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(). |
copyAfter | ![]() |
copyBefore | ![]() |
copyInto | ![]() |
deleteMe | Deletes the operation from the document. In case of a setup or folder, all containing child operations will be deleted as well. Note: Child classes may overwrite this function and throw an exception if the object cannot be deleted. |
duplicate | ![]() |
modifyUtility | ![]() |
moveAfter | ![]() |
moveBefore | ![]() |
moveInto | ![]() |
Name | Description |
attributes | Returns the collection of attributes associated with this object. |
error | Returns a message corresponding to any active error associated with the value of this parameter. |
generatedDataCollection | ![]() |
generatingProgress | Gets the generation progress value for this operation. |
hasError | Gets if errors were encountered when generating the operation. |
hasToolpath | Gets if a toolpath currently exists (has been generated) for this operation. |
hasWarning | Gets if problems were encountered when generating the operation. |
isGenerating | Gets if the operation is being generated. |
isLightBulbOn | ![]() |
isOptional | Gets and sets the "Optional" property value of the operation. Gets/sets true if the operation is optional. |
isProtected | Gets and sets the "protected" property value of the operation. Gets/sets true if the operation is protected. |
isSelected | Gets if this operation is selected in the 'Setups' browser. |
isSuppressed | Gets and sets the "Suppressed" property value of the operation. Gets/sets true if the operation is suppressed. |
isToolpathValid | Gets if the toolpath for this operation is currently valid. (has not become invalidated by model changes). |
isValid | Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference. |
isVisible | ![]() |
name | Gets and sets the name of the operation as seen in the browser. This name is unique as compared to the names of all other operations in the document. |
notes | Gets and sets the notes of the operation. |
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(): |
operationId | Returns the id of the operation. This id is unique as compared to the ids of all other operations in the document. This id will not change when changing the order or parent of the operation. This id will remain valid when the document is saved and reloaded. |
operationState | Gets the current state of this operation. |
parameters | Gets the CAMParameters collection for this operation. |
parent | Returns the parent Setup, Folder or Pattern for this operation. |
parentSetup | Gets the Setup this operation belongs to. |
strategy | Gets the name of the strategy associated with this operation. |
strategyType | **RETIRED** Gets the strategy type for this operation. |
tool | Get or set the tool for this operation. The document's tool library will be updated accordingly. The tool instance returned is a copy and therefore is not referenced by the operation. To change the tool of the operation, the new tool must be assigned to the operation. Setting a tool will override the current preset and will fall back to the default preset of the new tool. |
toolPreset | Get or set the tool preset to be used. Must be a valid preset of the already assigned tool. Returns null if the operation has no tool or preset. |
warning | Returns a message corresponding to any active warning associated with the value of this parameter. |
Name | Description |
Create Setups From Hole Recognition API Sample | This sample script demonstrates how to create a correctly oriented setup using Hole Recognition functionality. The Fusion Manufacturing Extension is required for Hole Recognition. The script starts by opening a sample model from the CAM Samples folder via its URN. The model comprises a 3 way coupling containing holes in various orientations and mounted on a fixture. A reference setup is created for the model using a simple stock mode and offsets. The Hole Recognition feature of the Fusion Manufacturing Extension creates 5 hole groups containing 11 holes between them. For each unique hole group vector captured, a new setup is created and its orientation transformed to match the vector. |