Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The `adsk.fusion.FeatureOperations.NewBodyFeatureOperation` is an `int` type and is not recognized in the `extrudeFeatures.addSimple` param for the operation.
I got around this and some other type bugs like this:
```
new_body_feature_operation: Any = adsk.fusion.FeatureOperations.NewBodyFeatureOperation
extrude_0 = extrude_features_0.addSimple(prof_0, extrude_distance_input_0, new_body_feature_operation)
```
The sample code that shows how to work with components does not work because of this error.
I know it is tough to get all the types correct, but it does make the API much more usable when they work.
Is there a better way that I should have addressed this? It does not appear that there is any cast available.
Solved! Go to Solution.