Constraint text jumps to 0,0

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Constraint text jumps to 0,0

Post by kisolre »

In file from this post https://forum.freecadweb.org/viewtopic.php?f=3&t=39417 when editing Sketch005 all dimension constraint texts jump to 0,0 if you try to move it. In Sketch004 everything works fine. Attached is same file with Sketch005 properly mapped and offset wich still exibits the same behavior.
To reproduce: Notice how in the screenshot all constraint text is on top of each other. Try to move some of them - nothing happends. There are other constraints which text is in proper place. Try to move some of them - text jumps to 0,0. Add a reference dimension constraint to any edge. If appears as expected. Try to move its text - it jumps to 0,0.

File was edited and saved with

OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18213 (Git)
Build type: Release
Branch: master
Hash: 22babc09954ac6fda9135ee71d68550921659b1c
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)

When opening it with

OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17505 (Git)
Build type: Release
Branch: master
Hash: 755536e9df94d2d39da1468420f1fd333c35da7a
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)

constraints in that sketch again jump to 0,0 but strangely then don't display their expressions. Expressions show Ok when file is opened with the version it was created with.
.
parametric storage box rounded_kiss.JPG
parametric storage box rounded_kiss.JPG (63.36 KiB) Viewed 786 times
Attachments
parametric storage box rounded_kiss.FCStd
(32.87 KiB) Downloaded 15 times
Last edited by kisolre on Sun Sep 22, 2019 10:30 am, edited 1 time in total.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Constraint text jumps to 0,0

Post by openBrain »

kisolre wrote: Wed Sep 18, 2019 8:20 am OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18213 (Git)
Build type: Release
Branch: master
Hash: 22babc09954ac6fda9135ee71d68550921659b1c
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)
Do you still have this issue with latest dev version ?
IIRC, version 18213 was one where DeepSOIC PR about TempoVis creates issues. ;)
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Constraint text jumps to 0,0

Post by kisolre »

Tried with

OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18234 (Git)
Build type: Release
Branch: master
Hash: 3af5d97e9b2a60823815f662aba25422c4bc45bb
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)

and with

OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18272 (Git)
Build type: Release
Branch: master
Hash: 88637aeb202b481a16cbd82c8767a0cc2745cfe1
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)

from yesterday and the issue with that specific file and sketch still persists.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Constraint text jumps to 0,0

Post by openBrain »

OK. Maybe I don't understand exactly what the bug is and how to reproduce. May you try to give a bit more detail about that?
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Constraint text jumps to 0,0

Post by kisolre »

I will edit OP but here it is: Notice how in the screenshot all constraint text is on top of each other. Try to move some of them - nothing happends. There are other constraints which text is in proper place. Try to move some of them - text jumps to 0,0. Add a reference dimension constraint to any edge. If appears as expected. Try to move its text - it jumps to 0,0.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Constraint text jumps to 0,0

Post by openBrain »

OK. I think I get it.
Here the dimensions are not really stuck at 0,0 , but there is some very strange snapping effect to origin, both in vertical & horizontal direction.
I guess that if you zoomed in very closely, you are no more able to move the dimensions away from the snapping range so they seems to be completely locked. ;)
snap.gif
snap.gif (173.57 KiB) Viewed 740 times
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Constraint text jumps to 0,0

Post by bejant »

To me it looks like Grid Snap is on (I don't use it)

20190922a.png
20190922a.png (51.27 KiB) Viewed 728 times
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: Constraint text jumps to 0,0

Post by chrisb »

GridSnap is indeed true for this sketch. Please note, that this is a property of the Sketch itself. The preference setting is used only as an initial value.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Constraint text jumps to 0,0

Post by openBrain »

Let's go to the end of this. GridSnap is True, and setting to False solves the issue of snapping to the origin. :)
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Constraint text jumps to 0,0

Post by kisolre »

Ok, so the problem is that I have default grid size set to 10m (there was a problem with too dense grid with large file in the past). But Show grid is not active, activating it enables Grid snap (makes it selectable) but it is not active. Still sketch acts as if Grid snap is active. Maybe this should go to "Known issues" with the "Auto constraint" act toggle off/on to activate in some cases?
Post Reply