The essence of Arch objects and custom Arch Window

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: The essence of Arch objects and custom Arch Window

Post by paullee »

Curious to learn the same also, more questions though @yorik :D


Example Model File in the Window Wiki
  1. In the example file of the Window wiki, the Window use App:Part with Subvolume link
  2. It seems the Windows object find the Subvolume attribute in the App:Part and automatic use this link with it recompute()
  3. ( It seems in the Report it indicates something like 'out of scope' problem, though it seems working )
Dragnalith's Model File
  1. Dragnalith seems not using App:Part, but a Body (I am not familiar with PartDesign)
  2. Adding a SubVolume attribute and Link to the Pad, the Window object does not seems to find this ?
  3. Even I just link the Window's Subvolume to this Pad, it is not working
CustomWindowTest_r.FCStd
(27.74 KiB) Downloaded 23 times
Screenshot from 2022-07-31 02-47-24.png
Screenshot from 2022-07-31 02-47-24.png (227.5 KiB) Viewed 736 times
Screenshot from 2022-07-31 02-47-30.png
Screenshot from 2022-07-31 02-47-30.png (252.46 KiB) Viewed 736 times
Screenshot from 2022-07-31 02-59-58.png
Screenshot from 2022-07-31 02-59-58.png (217.96 KiB) Viewed 736 times
Dragnalith
Posts: 13
Joined: Mon Jul 25, 2022 3:00 am

Re: The essence of Arch objects and custom Arch Window

Post by Dragnalith »

I have been able to fix my custom window experiment if the shape used as subvolume is different from the shape use as the 3d model.

I am running into new problem regarding material, from my experiment (CustomWindowTest_fixed.FCStd) and from the Arch Window sample (Window_Type.FCStd), I have noticed depending on the position of the Arch Window the material apply correctly or not.

You can see in my screenshot the two window does not have the same color (but actually use the same material). And on the Arch Window sample if you add an offset on the Y-axis of the arch window (even just 1mm) the glass won't be transparent anymore.

Is it a bug or am I doing something wrong?
Attachments
CustomWindowTest_fixed.FCStd
(48.96 KiB) Downloaded 18 times
screenshot_material_issue.png
screenshot_material_issue.png (201.62 KiB) Viewed 655 times
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: The essence of Arch objects and custom Arch Window

Post by paullee »

Confirmed for the glass material, this is noted quite a while ago. Could you help make a bug report (or check if there is an existing one) please :D

Select the window, goto View tab, find Transparency, scroll your mid-mouse button to turn it to 1 or figure not 0, turn it back to 0. Now you have your glass transparent.

Sometime after recompute(), needs to repeat the same thing to make it appear correct again :lol:

As for the Core object, I can't make it work either.

OK, I clear the Base of the Window object, maybe recompute() it, then select the Base as the Part again, then it works :D Probably somehow the Window object do not clear the internal 'memory' of previous viewobject setting ?
Screenshot from 2022-08-01 08-41-08.png
Screenshot from 2022-08-01 08-41-08.png (197.71 KiB) Viewed 589 times
Dragnalith
Posts: 13
Joined: Mon Jul 25, 2022 3:00 am

Re: The essence of Arch objects and custom Arch Window

Post by Dragnalith »

Thank you @paullee for trying to help.

I've tried your tricks of changing window transparency to reset the glass metrical visual, but it did not do anything.

I did not understand "clear the Base of the window", nor what you meant by "select the Base of the window", what is the base?
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: The essence of Arch objects and custom Arch Window

Post by paullee »

See Screencapture

Screenshot from 2022-08-01 23-45-01.png
Screenshot from 2022-08-01 23-45-01.png (33.98 KiB) Viewed 508 times
Post Reply