Bug Report: negative distance constraints accepted, but work wrongly (abs())
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ideally - negative horizontal and vertical constraints should just work the same as positive ones, just "going the other way"
Presently, this is accepted without an error:
rh=d.addDistanceDimension(nose, sp, myHorizontalDimensionOrientation, sp.geometry)
rh.parameter.expression='{} cm'.format(splinex[i]*scale) # This is negative
but the resulting constraint is being treated as an absolute value (dropping the negative sign), which obviously messes things up...
e.g. these look OK at first glance (except for the glaring fact that it's not supposed to have a dimple in it):-
The problem is revealed if you click on the one that's not supposed to be dimpled:
It's being treated like 0.087 when it's supposed to be -0.087
I notice it turns red if I try to change it. It might be better to fix the code dealing with negative constraints, rather than try to hide that issue by trying to prevent users from entering them?
Interestingly, this seems to only be a problem with Horizontal Dimensions. Vertical ones work fine (even though, when clicked, they come up as red/invalid - they are actually working OK)