Why is Standard View Fit All too small for assemblies(4)?

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!
User avatar
ppemawm
Veteran
Posts: 1240
Joined: Fri May 17, 2013 3:54 pm
Location: New York NY USA

Why is Standard View Fit All too small for assemblies(4)?

Post by ppemawm »

This is one of the few annoying little features I notice when working on assemblies. This is not the case for individual Bodies which zoom nicely to fill the screen when Fit All is selected.

Fit All for this assembly(4) Model shown on the left is too small for any use when it should be much larger as shown on the right:

Picture1.png
Picture1.png (378.05 KiB) Viewed 984 times
Is this peculiar to Assembly4?
Is there a Parameter setting to change this?

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.30345 (Git)
Build type: Release
Branch: master
Hash: f42a47aa0fd8c4f34ef63c185d9f29b9b6e84737
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Assembly4 0.12.4
  * fasteners 0.4.6
  * fcgear 1.0.0
"It is a poor workman who blames his tools..." ;)
User avatar
ppemawm
Veteran
Posts: 1240
Joined: Fri May 17, 2013 3:54 pm
Location: New York NY USA

Re: Why is Standard View Fit All too small for assemblies(4)?

Post by ppemawm »

Can anyone confirm this anomaly?

Or, is this the dumbest or silliest question ever, or no one knows why, or am I simply being ignored?
So, which is it?
"It is a poor workman who blames his tools..." ;)
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Why is Standard View Fit All too small for assemblies(4)?

Post by Shalmeneser »

Can you provide a MWE. (I don't use Assemblies)
User avatar
mfro
Posts: 664
Joined: Sat Sep 23, 2017 8:15 am

Re: Why is Standard View Fit All too small for assemblies(4)?

Post by mfro »

I think the same is true for single parts (although not as stark).

Anyhow, I almost always find myself "adjusting" the zoom "just a little closer" after Standard_ViewFitAll.
Cheers,
Markus
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Why is Standard View Fit All too small for assemblies(4)?

Post by adrianinsaval »

I don't know if this is the cause in this case, but from what I've observed freecad takes the biggest dimension of an object and adjust the smaller side of the viewport to fit that and a little more, this can leave a big empty space if the biggest dimension of the object is not in the same direction as the smaller side of the viewport. See this simple example file and try running Fit Selection on each cube and notice how it gets smaller for each despite all taking the same vertical space as the smaller cube.
Attachments
zoom_ex.FCStd
(7.31 KiB) Downloaded 25 times
User avatar
ppemawm
Veteran
Posts: 1240
Joined: Fri May 17, 2013 3:54 pm
Location: New York NY USA

Re: Why is Standard View Fit All too small for assemblies(4)?

Post by ppemawm »

Shalmeneser wrote: Fri Sep 23, 2022 2:12 pm Can you provide a MWE.
I do not know what MWE is.
"It is a poor workman who blames his tools..." ;)
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: Why is Standard View Fit All too small for assemblies(4)?

Post by chrisb »

ppemawm wrote: Fri Sep 23, 2022 2:40 pm I do not know what MWE is.
Usually it's me, who doesn't know all these English abbreviations. But I know this one: Minimal Working Example.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
ppemawm
Veteran
Posts: 1240
Joined: Fri May 17, 2013 3:54 pm
Location: New York NY USA

Re: Why is Standard View Fit All too small for assemblies(4)?

Post by ppemawm »

adrianinsaval wrote: Fri Sep 23, 2022 2:32 pm I've observed freecad takes the biggest dimension of an object and adjust the smaller side of the viewport to fit
Yeah, I have noticed as well, but it seems to be peculiar to assemblies because I can have one small and one large body and FitAll will fill the window as expected but not as an Assembly4 Model.

If I sequentially unhide each body in the assembly I am referencing in my first post, FitAll suddenly shrinks to the size you see in the image when I unhide a wheel which is a sub-assembly. The behavior is the same in the sub-assembly file but still somewhat larger than the top assembly.
"It is a poor workman who blames his tools..." ;)
User avatar
ppemawm
Veteran
Posts: 1240
Joined: Fri May 17, 2013 3:54 pm
Location: New York NY USA

Re: Why is Standard View Fit All too small for assemblies(4)?

Post by ppemawm »

chrisb wrote: Fri Sep 23, 2022 2:46 pm Minimal Working Example.
Ok, thanks.
I'll see what I can come up with that is small enough to attach.
"It is a poor workman who blames his tools..." ;)
User avatar
ppemawm
Veteran
Posts: 1240
Joined: Fri May 17, 2013 3:54 pm
Location: New York NY USA

Re: Why is Standard View Fit All too small for assemblies(4)?

Post by ppemawm »

adrianinsaval wrote: Fri Sep 23, 2022 2:32 pm See this simple example file and try running Fit Selection on each cube and notice how it gets smaller for each despite all taking the same vertical space as the smaller cube.
So, here is a MWE (minimal working example) regarding behavior in Assembly4. All it confirms is that in this example is behaves as expected.

That leads be to think it must be something odd with my file so it is probably no longer anyone's time to pursue it further.
Thanks anyway.

It is still my humble opinion that FitAll should fill 90% of the minimum dimension of the view port.
Zolko wrote: Mon Sep 19, 2022 10:05 pmPing...
Attachments
zoom_ex--assembly4.FCStd
(28.22 KiB) Downloaded 26 times
"It is a poor workman who blames his tools..." ;)
Post Reply