forked from 1b-agent/opencadstudio-upstream
Dimensional constraints: DCFORM, DIMCONSTRAINT options, -PARAMETERS, value prompt, save without display overrides
DCFORM sets the annotational or dynamic form and continues into the DIMCONSTRAINT option prompt, whose wording and last-used default match the reference. -PARAMETERS manages parameters from the command line; a double-clicked constraint dimension opens its value prompt. Dynamic dimensions rescale on every camera change and their display overrides stay out of the saved file. A driving dimension between an entity's own ends no longer has its length retained, so a new value moves the second point along the dimension axis; parameter edits hold the first constraint point. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
aa51765a62
commit
3e28604752
12 files changed
+810
-34
No files matched your search
@@ -2766,6 +2766,21 @@ fn solve_scope(
|
||||
constraint.refs.get(2).is_some_and(|axis| axis.entity == *handle)
|
||||
})
|
||||
|| equal_followers.iter().any(|follower| follower.entity == *handle)
|
||||
// A driving dimension between an entity's own ends is its size;
|
||||
// a retained length would contradict a new value.
|
||||
|| constraints.iter().any(|c| {
|
||||
c.enabled
|
||||
&& c.driving_param.is_some()
|
||||
&& matches!(
|
||||
c.kind,
|
||||
ConstraintKind::Distance
|
||||
| ConstraintKind::DistanceX
|
||||
| ConstraintKind::DistanceY
|
||||
| ConstraintKind::DistanceDirected
|
||||
)
|
||||
&& c.refs.len() >= 2
|
||||
&& c.refs.iter().all(|r| r.entity == *handle && r.marker.is_some())
|
||||
})
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user