FC file very slow loading.Broken horizontal dimensions

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Mikki18121
Posts: 2
Joined: Mon Jan 16, 2023 11:57 am
Contact:

FC file very slow loading.Broken horizontal dimensions

Post by Mikki18121 »

Hello, all,

I don't know why my file takes > 10 min to open.

Code: Select all

OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu-xorg)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29177 +426 (Git) Snap 517
Build type: Release
Branch: tag: 0.20.2
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Help 1.0.3
And when wanted to open an "old" file created earlier all horizontal lines break - 2D_left_Rack_80_200
Horizontal dimensions between vertical tubes should be 0.82 m.


Here are the file
https://drive.google.com/drive/folders/ ... sp=sharing
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: FC file very slow loading.Broken horizontal dimensions

Post by Shalmeneser »

< 1 min.

Code: Select all

OS: Linux Mint 20.3 (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.21.30922 (Git) AppImage
Build type: Release
Branch: master
Hash: 8ec1279ea8ee32a36fae683b42b5cfc5821734b5
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: French/France (fr_FR)
Installed mods: 
  * Manipulator 1.4.9
  * fasteners
  * sheetmetal 0.2.57
  * DynamicData 2.46.0
  * fasteners.bak
Attachments
Capture du 2023-01-16 23-26-17.png
Capture du 2023-01-16 23-26-17.png (56.13 KiB) Viewed 901 times
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: FC file very slow loading.Broken horizontal dimensions

Post by Shalmeneser »

But crash some minutes after. Don't know why.
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: FC file very slow loading.Broken horizontal dimensions

Post by wandererfan »

Mikki18121 wrote: Mon Jan 16, 2023 9:03 pm I don't know why my file takes > 10 min to open.
The short answer is that you're making a hidden line drawing and every face and edge in every one of those individual components needs to be compared to all the others to determine if it is visible or not. In version 0.20 all those comparisons are done sequentially. In v0.21 many are done in parallel, so it loads a lot faster. Interesting, but not helpful.

You're not really interested in the objects behind the ones you can see, so it makes sense to not include them in the drawing. I used some judicious selection to make this file. It loads in about 2:30 here vs >10 minutes for the original.
Mikki18121 wrote: Mon Jan 16, 2023 9:03 pm And when wanted to open an "old" file created earlier all horizontal lines break - 2D_left_Rack_80_200
Horizontal dimensions between vertical tubes should be 0.82 m.
I'm guessing, but I would say there was an edit somewhere that changed the numbering of the edges associated with the dimensions. Some of the horizontal dimensions are now linked to vertical members. This is an aspect of the dreaded "topological naming problem".

Code: Select all

OS: Ubuntu Core 20 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29177 +426 (Git) Snap 517
Build type: Release
Branch: tag: 0.20.2
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/Canada (en_CA)
Mikki18121
Posts: 2
Joined: Mon Jan 16, 2023 11:57 am
Contact:

Re: FC file very slow loading.Broken horizontal dimensions

Post by Mikki18121 »

Thank you for your reply and for taking the trouble to fix my file up for me
Post Reply