Referencing an Object in relation to another

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Roy_043
Veteran
Posts: 8574
Joined: Thu Dec 27, 2018 12:28 pm

Re: Referencing an Object in relation to another

Post by Roy_043 »

To move the door you should change the attachment of the underlying sketch.
Look at the first image in this contribution by @paullee:
https://forum.freecadweb.org/viewtopic. ... 60#p338087

In this case the Attachment offset Z value must be changed. This is because the door sketch is attached to a plane that is perpendicular to the wall sketch line.
ckl6767
Posts: 92
Joined: Tue Apr 16, 2019 12:14 pm

Re: Referencing an Object in relation to another

Post by ckl6767 »

Oupsss :oops: I got it... Sorry, to not have seen the answer.

However, not easy to understand which Alignment to choose, and the axis to manage to get the final expected position..
Once is "X", (for Door) another one is "Y" (for Window)
Capture01.PNG
Capture01.PNG (58.29 KiB) Viewed 1204 times
Capture02.PNG
Capture02.PNG (67.88 KiB) Viewed 1204 times

Also, sometimes, the wall are not updated (Here below I just have modified the length [of the center] of the wall from 5 m to 6 m) :cry:
Capture.PNG
Capture.PNG (196.41 KiB) Viewed 1201 times
To fix the issue, I had to modify a feature of the wall : width from 20 cm to 15 cm, then back to 20 cm..

CONCLUSION

I would say it is an "acceptable" workaround but still bugged, and the requested feature should be native to Arch & BIM. ;)
home.FCStd
(32.36 KiB) Downloaded 51 times
Last edited by ckl6767 on Mon Oct 07, 2019 1:51 pm, edited 1 time in total.
User avatar
Roy_043
Veteran
Posts: 8574
Joined: Thu Dec 27, 2018 12:28 pm

Re: Referencing an Object in relation to another

Post by Roy_043 »

You should be able to use the same alignment for all windows and doors.
Sometime you have to force a recompute: Select the the document node, right click and select "Mark to recompute" and click the Std Refresh button.
Attachments
home3.FCStd
(42.37 KiB) Downloaded 54 times
ckl6767
Posts: 92
Joined: Tue Apr 16, 2019 12:14 pm

Re: Referencing an Object in relation to another

Post by ckl6767 »

Roy_043 wrote: Mon Oct 07, 2019 1:50 pm Sometime you have to force a recompute: Select the the document node, right click and select "Mark to recompute" and click the Std Refresh button.
Thanks for the trick ! 8-) 8-)
paullee
Veteran
Posts: 5130
Joined: Wed May 04, 2016 3:58 pm

Re: Referencing an Object in relation to another

Post by paullee »

Yes, pretty difficult to understand - I spend another hour to read MapMode / Attachment Mode again :)
ckl6767
Posts: 92
Joined: Tue Apr 16, 2019 12:14 pm

Re: Referencing an Object in relation to another

Post by ckl6767 »

Hello all,

Now working on: Version: 0.19.18831 (Git)

Finally I decided to use the following trick to position a window.
Using the OXY mapping of the "window sketch" to a "construction sketch" linked to the Wall
Capture (1).PNG
Capture (1).PNG (57.78 KiB) Viewed 987 times
Unfortunately I'm facing an issue.
Certainly due to "the internal freecad problem of topological naming"
Before to add the last window
Capture.PNG
Capture.PNG (74.83 KiB) Viewed 987 times
After adding the last window
Capture01.PNG
Capture01.PNG (49.91 KiB) Viewed 987 times
However, the approach seems interesting:
Using a "construction sketch" to setup the position of the windows.

The issue is clearly identified.
Before to add the last window "Face Number = 18" , after, "Face number = 22" !
Capture03.PNG
Capture03.PNG (131.39 KiB) Viewed 981 times

Have you any idea how I could fix this issue in a smart way :?: :?:

Thanks in advance
Attachments
home.FCStd
(113.22 KiB) Downloaded 36 times
User avatar
Roy_043
Veteran
Posts: 8574
Joined: Thu Dec 27, 2018 12:28 pm

Re: Referencing an Object in relation to another

Post by Roy_043 »

Try to map the construction sketches to the base sketch of the wall. Assuming that sketch is unlikely to change, that would be a better option.
ckl6767
Posts: 92
Joined: Tue Apr 16, 2019 12:14 pm

Re: Referencing an Object in relation to another

Post by ckl6767 »

Done.
Thanks to some pillars mapped to the base sketch, I could setup the "construction sketch"
And all is working well.

Thanks for your help
Capture.PNG
Capture.PNG (113.96 KiB) Viewed 961 times
Capture01.PNG
Capture01.PNG (97.14 KiB) Viewed 961 times
Attachments
home.FCStd
(141.47 KiB) Downloaded 32 times
ckl6767
Posts: 92
Joined: Tue Apr 16, 2019 12:14 pm

Re: Referencing an Object in relation to another

Post by ckl6767 »

Just a lttle question.
To create a pillar I use the "NormalToEdge" method, as shown in Video.

I could observe that according to the line,
  • Once the pillar is created on the right , and for another line
  • it is created on the left .
What makes this distinction :?:
Orientation of the line :idea:

Is there a way to choose the side where we want to create the pillar?

I still have 2 pillars to position and I can not put them in the right place.
(Of course I could manage with these already pillars, but here it's really a question of understanding)
Capture.PNG
Capture.PNG (57.98 KiB) Viewed 925 times
thank you in advance
 
Attachments
home.FCStd
(318.95 KiB) Downloaded 34 times
User avatar
Roy_043
Veteran
Posts: 8574
Joined: Thu Dec 27, 2018 12:28 pm

Re: Referencing an Object in relation to another

Post by Roy_043 »

You are right: for NormalToEdge the direction of the edge is taken into account. The lines in the main Sketch are not all CW or CCW.
You can try using ThreePointsNormal instead.
Post Reply