
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In the GUI I set Preferences/Default Units/Design to "in". In the gui's browser under the root component is the item "Units:in"
I've also tried adding to my script
app = adsk.core.Application.get()
ui = app.userInterface
product = app.activeProduct
design = adsk.fusion.Design.cast(product)
design.fusionUnitsManager.distanceDisplayUnits = adsk.fusion.DistanceUnits.InchDistanceUnits
When I sketch in the GUI numbers get "in" labels automatically added and are interpreted as inches.
But when I use the method SketchCircles.addByCenterRadius(centerPoint, radius) with radius of type double, I get a circle sized as if radius was interpreted as centimeters.
The following also is interpreted in centimeters
extrudeInput.setDistanceExtent(False, adsk.core.ValueInput.createByReal(1.0))
How do I change the way these unitless values are interpreted?
Solved! Go to Solution.