Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [TD] Expression Not Recalculated on Change of Position #6943

Closed
2 tasks done
WandererFan opened this issue May 31, 2022 · 1 comment
Closed
2 tasks done

[Bug] [TD] Expression Not Recalculated on Change of Position #6943

WandererFan opened this issue May 31, 2022 · 1 comment
Labels
Bug This issue or PR is related to a bug Expressions WB TechDraw Related to the TechDraw Workbench

Comments

@WandererFan
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Forums discussion

https://forum.freecadweb.org/viewtopic.php?f=35&t=68417

Version

0.20 (Development)

Full version info

[code]
OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: d492ac30838e4fb07b1ce4b378730f2fb38b9ba3
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, OCC 7.5.2
Locale: English/United States (en_US)
Installed mods: 
  * A2plus 0.4.54b
  * Curves 0.3.0
  * fasteners 0.3.40
[/code]

Subproject(s) affected?

Techdraw

Issue description

An expression in a linked view is not updated when the base view position is changed.

X,Y properties are set to Prop_Output to avoid extra recompute of geometry when the position of the view changes. This means that X,Y changes in the base view do not trigger a recalculation of the expression in the linked view.

X,Y were changed to Prop_NoRecompute, but this causes excessive updating of geometry in Sections and Details, and so the change was reverted.

The linked view needs to know that the change triggering the recalculation is only for position and that the geometry does not need to be recomputed.

Anything else?

Test file in the linked forum topic.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@WandererFan WandererFan added WB TechDraw Related to the TechDraw Workbench Expressions labels May 31, 2022
@luzpaz luzpaz added the Bug This issue or PR is related to a bug label May 31, 2022
@WandererFan
Copy link
Contributor Author

fixed by commit d14f8cd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This issue or PR is related to a bug Expressions WB TechDraw Related to the TechDraw Workbench
Projects
None yet
Development

No branches or pull requests

2 participants