Message 1 of 5
How to use .setAllExtent() for extrusion feature

Not applicable
06-29-2016
09:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm extruding some profiles on different planes and on some planes it trys to extrude the profile in a direction tangent to the sketch plane and fails. So i'm trying to set the direction as a
adsk.fusion.ExtentDirections.PositiveExtentDirection
but I don't understand what the parameter value should be in the .setAllExtent method - i'm miss understanding this help page I think;
http://help.autodesk.com/view/NINVFUS/ENU/?guid=GUID-3e9bcf4c-7f75-4b5d-860a-827e4c342d3e
Full code here;
# Create extrusion input extrudes = rootComp.features.extrudeFeatures extInput = extrudes.createInput(profiles, adsk.fusion.FeatureOperations.NewBodyFeatureOperation) # Define distance of extrude distance = adsk.core.ValueInput.createByReal(feature['distance'] / 10) # Set the distance extent to be symmetric extInput.setDistanceExtent(True, distance) # Set the extrude to be a solid # extInput.isSolid = True # extent_def = adsk.fusion.ExtentDirections.PositiveExtentDirection # Set direction extInput.setAllExtent(1) # Create the extrusion ext = extrudes.add(extInput)
Any help much appreciated and an example would be even more appreciated!
Thanks