Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am changing the values in the model parameters to be inches not metric.
The code below works for "setDistanceExtent" but not for "setSymmetricExtent"
I have been playing with the code but can't seem to figure it out.
# Change to inches in Parameters
extent_2 = adsk.fusion.DistanceExtentDefinition.cast(dowelODExt.extentOne)
distanceMP_2 = adsk.fusion.ModelParameter.cast(extent_2.distance) <<<<<<<< Line 191
distanceMP_2.expression = "{:.{}f}".format(((numDowelLength * -1) / sizeUnits), 4) + 'in'
dowelODExt.name = 'Dowel Length'
This is the error message I get:
Brad Bylls
Solved! Go to Solution.