Ticket #4399 - sketcher behavior generating a lock constraint in reference mode

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
bluebaer
Posts: 24
Joined: Wed Aug 21, 2019 8:29 pm
Location: Germany

Ticket #4399 - sketcher behavior generating a lock constraint in reference mode

Post by bluebaer »

Hi,

I stumbled across a odd behavoir of the sketcher when with "lock constraint" when toggling from/to reference mode.

Following setup:
- make 1st sketch on xy with fully constraint sqaure
- make 2nd sketch on xy and "external reference" on line on sketch 1.
- toggle to reference constraint mode
- lock on end point of sktech

Expected behavior: two blue reference constraint
Precieved behavior: two red constraints

When playing further things get more mixed up...

Please see demo file (delete sketch001 to reproduce).
Test_File_sktech_bug.FCStd
(10.76 KiB) Downloaded 62 times
And Gif.
Demo_Sktech_bug.gif
Demo_Sktech_bug.gif (845.38 KiB) Viewed 1772 times
Topic can be reproduced in:

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21775 (Git)
Build type: Release
Branch: master
Hash: 1f741aa511e898849e46ed14515fce416fe32acb
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: German/Germany (de_DE)

and assembly-3 release from realthunder 0.11 2020.06.18



Can someone to reproduce / any advice?
Last edited by Kunda1 on Thu Jul 09, 2020 12:34 pm, edited 1 time in total.
Reason: Added ticket number to thread title
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: sketcher behavior generating a lock constraint in reference mode

Post by chrisb »

Confirmed.

Reproducing and showing desired behaviour can be slightly simplified:
Reproduce:
- in second sketch create a reference to external geometry.
- select an endpoint of the reference geometry
- add lock constraint
-> normal (red) constraints are added and correctly a redundancy error is detected.

To show expected behaviour:
- in second sketch create a reference to external geometry.
- select an endpoint of the reference geometry
- add a vertical distance constraint -> is added as (blue) driven dimension
- add a horizontal distance constraint -> is added as (blue) driven dimension

Would you please create a ticket?

OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21671 (Git)
Build type: Release
Branch: master
Hash: f05253f882b336f56aae32593faa5676fd5aafdd
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
bluebaer
Posts: 24
Joined: Wed Aug 21, 2019 8:29 pm
Location: Germany

Re: sketcher behavior generating a lock constraint in reference mode

Post by bluebaer »

chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: sketcher behavior generating a lock constraint in reference mode

Post by chrisb »

Thanks! For your next ticket: You can use the "bug" tag and simply enter the number. That creates a link to the ticket.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Bei3lay
Posts: 34
Joined: Wed Aug 28, 2019 6:48 am

Re: Ticket #4399 - sketcher behavior generating a lock constraint in reference mode

Post by Bei3lay »

Solved in PR 3995.
Post Reply