Bug #1478: trim edge fails to maintain constraints

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
User avatar
Kunda1
Posts: 621
Joined: Thu Jan 05, 2017 9:03 pm

Bug #1478: trim edge fails to maintain constraints

Postby Kunda1 » Thu Jan 19, 2017 7:45 pm

issue #1478: trim edge fails to maintain constraints
Please decide if this is a bug. Thank you.
User avatar
Kunda1
Posts: 621
Joined: Thu Jan 05, 2017 9:03 pm

Re: Bug #1478: trim edge fails to maintain constraints

Postby Kunda1 » Mon Jan 23, 2017 6:54 pm

jmaustpc wrote:I can't see why you think this is a bug?

You can't do as you have said because you can't trim any thing at 0,18,0 ...the top horizontal line is at (whatever, "16 point something", whatever). If I understand you correctly, you want to trim the top horizontal line in the sketch, this would then make the horizontal constrains invalid so they are automatically removed, so of course the sketch would become not fully constrained.

Can others please weigh in to this issue? Thanks!
User avatar
NormandC
Posts: 12066
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Bug #1478: trim edge fails to maintain constraints

Postby NormandC » Tue Jan 24, 2017 5:36 am

Here or on the bug tracker?

I usually consider that when an element is trimmed, any constraint that was applied to it should be deleted. For example: a line that has an equal length constraint with another line. If one of the lines is trimmed, the equality constraint should be automatically deleted.

But the case of this specific report is different: Constraint37 and Constraint38 are not applied to the line to be trimmed, but on the vertical lines. See how the sketch looks like when I delete some constraints so I can detach the top horizontal line:

FC_trim_bug_1478_01.png
FC_trim_bug_1478_01.png (25.88 KiB) Viewed 225 times


So IMO, the two 5mm constraints should not be deleted when the upper horizontal line is trimmed.
User avatar
Kunda1
Posts: 621
Joined: Thu Jan 05, 2017 9:03 pm

Re: Bug #1478: trim edge fails to maintain constraints

Postby Kunda1 » Tue Jan 24, 2017 1:46 pm

@NormandC with these older bugs do you mind notating the ticket directly? It helps get them visible on the tracker and helps me from a monitoring perspective because I see that there is progress occurring, Thanks! Oh and thanks for your response as well!
User avatar
NormandC
Posts: 12066
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Bug #1478: trim edge fails to maintain constraints

Postby NormandC » Wed Jan 25, 2017 3:07 am

Kunda1 wrote:@NormandC with these older bugs do you mind notating the ticket directly?

Done!

Kunda1 wrote: Oh and thanks for your response as well!

No sir, thank you for your tireless work on the bug tracker! ;)
User avatar
Kunda1
Posts: 621
Joined: Thu Jan 05, 2017 9:03 pm

Re: Bug #1478: trim edge fails to maintain constraints

Postby Kunda1 » Tue Mar 14, 2017 12:05 pm

NormandC wrote:
Kunda1 wrote:@NormandC with these older bugs do you mind notating the ticket directly?

Done!

Kunda1 wrote: Oh and thanks for your response as well!

No sir, thank you for your tireless work on the bug tracker! ;)

Verdict on this ticket? issue #1478
User avatar
NormandC
Posts: 12066
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Bug #1478: trim edge fails to maintain constraints

Postby NormandC » Thu Mar 16, 2017 2:39 am

My verdict hasn't changed: IMHO it's a valid request. But it might take a while before someone is willing to tackle this...