Cannot Get Datum Plane To Line Up

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
justacec
Posts: 53
Joined: Fri Jul 21, 2017 10:55 am

Cannot Get Datum Plane To Line Up

Post by justacec »

I have a part (Leg_Base_Right) that I have built with the Part Design WB and I need to place a pocket on a face. Because of the Topo Naming problem, I have learned to stick with using datum planes vice using faces for sketch supports. The problem in this case is that I cannot seem to get the datum plane to line up with the face. Here is an image of the misalignment and a close up:
Mis-Alignment.png
Mis-Alignment.png (51.34 KiB) Viewed 978 times
Mis-Alignment Closeup.png
Mis-Alignment Closeup.png (43.56 KiB) Viewed 978 times
The angle seems to be off by 1.4 degrees (based on when I just adjust the angle by hand) which does not seem to correlate to anything. The angle is an expression pulling the angle from Sketch016 where I have the offset angle being calculated by the solver and stored as a reference constraint. Because of that, I assumed that the angle of the datum plane would always line up without failure. Here is an image of Sketch016.
Supporting Sketch.png
Supporting Sketch.png (182.95 KiB) Viewed 978 times
The 23.2 degree angle in red in the sketch is the "offset_angle" and then the 0.328 is the "center_support_offset_x" and the -2.4206 is the "center_support_offset_y". All of the properties for the datum plane are:
Datum Plane Properties.png
Datum Plane Properties.png (131.53 KiB) Viewed 978 times
I have been messing with this all night and cannot figure out why the plane does not line up with the part face.

I have also attached the FCStd file here.

@chrisb: I had posted a different question about the cyclic dep issue in the expression engine. To try to systematically remove that I took out the intermediate storage and calculation of things in the spreadsheet so there should be no more cyclic issues.

Thanks for any help on this. This is driving me crazy.

File originally started in the 0.20 weekly's but has been most recently saved in the current stable 0.19.1 for MacOS and I am using MacOS 11.2.3
Attachments
TableSave.FCStd
(251.69 KiB) Downloaded 34 times
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Cannot Get Datum Plane To Line Up

Post by bambuko »

90deg - 68.2deg = 21.8 deg (face I am assuming you are trying to align to?)

<<Sketch016>>.Constraints.offset_angle = 23.2deg (datum plane angle)

no wonder than 23.2deg - 21.8deg = 1.4deg misalignment ???

unless I got what you are trying to do entirely wrong?
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
justacec
Posts: 53
Joined: Fri Jul 21, 2017 10:55 am

Re: Cannot Get Datum Plane To Line Up

Post by justacec »

Umm. Yea... you are correct.

Thanks for that.
chrisb
Veteran
Posts: 54280
Joined: Tue Mar 17, 2015 9:14 am

Re: Cannot Get Datum Plane To Line Up

Post by chrisb »

This is better done with an appropriate attachment.
Attachments
TableSave_cb.FCStd
(197.81 KiB) Downloaded 35 times
SnipScreenshot-661889.png
SnipScreenshot-661889.png (10.99 KiB) Viewed 920 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Cannot Get Datum Plane To Line Up

Post by bambuko »

chrisb wrote: Mon May 10, 2021 2:59 pm This is better done...
using the same mapping mode for the sketch directly, without additional (not needed) plane?
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
justacec
Posts: 53
Joined: Fri Jul 21, 2017 10:55 am

Re: Cannot Get Datum Plane To Line Up

Post by justacec »

@chrisb: Thanks for the pointer. I will check out that document. Looks like it has a lot of gold in it. Does what your suggesting compensate for the Topo naming issue that I was trying to avoid? I have tried to avoid this by only ever attaching to the base coordinate system for the part and never referencing anything other than a sketch.
chrisb
Veteran
Posts: 54280
Joined: Tue Mar 17, 2015 9:14 am

Re: Cannot Get Datum Plane To Line Up

Post by chrisb »

justacec wrote: Mon May 10, 2021 3:10 pm Does what your suggesting compensate for the Topo naming issue that I was trying to avoid?
To a good extent, yes, but if you add or delete geometric elements in the sketch it may still fail. So your approach is indeed even more stable.
Bambuko is right with omitting the DatumPlane. I use DatumPlanes only if I attach more than one sketch to them.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
domad
Veteran
Posts: 2096
Joined: Mon Jun 22, 2020 12:16 pm

Re: Cannot Get Datum Plane To Line Up

Post by domad »

justacec wrote: Mon May 10, 2021 11:24 am ................ ping
Hi justacec, Greetings to the Community!
I was reading the section of this forum and I came across the problem, after careful analysis of the references (I do not go into the merits of the correctness of the modeling workflow) I noticed an incorrect definition of the angle that determines the inclination of DatumPlane001 on the face assigned.
The following images demonstrate the error.
Beware it is very difficult for FreeCad to make mistakes in these trivial geometric calculations rather it is easier for us to make mistakes, after all he does what we tell him to do (almost never the opposite), so I always recommend not giving up but checking carefully (maybe sipping a cup of tea) inputs, this is what makes us grow technically and appreciate this wonderful software more and more. :) ;)
Attachments
errata_Constraints.png
errata_Constraints.png (239.9 KiB) Viewed 825 times
correct_Constraints.png
correct_Constraints.png (133.41 KiB) Viewed 825 times
Post Reply