(WORKAROUND) Speed ​​by techdraw

Discussions about the development of the TechDraw workbench
User avatar
thomas-neemann
Veteran
Posts: 6612
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE

(WORKAROUND) Speed ​​by techdraw

Post by thomas-neemann »

@uwestoehr asked me to open this thread with cc to @wandererfan

the problem is described here:

https://forum.freecadweb.org/viewtopic. ... 90#p606795


the building is included here

https://github.com/chopinregis/Elementa ... nta-Monroy
Last edited by thomas-neemann on Sat Jul 02, 2022 4:43 am, edited 1 time in total.
ich biete freecad online-support an, als mini-job
VHS Freecad Webseminare Herbst 2022
https://www.vhs-lingen.de/programm/beru ... 011#inhalt
https://www.vhs-lingen.de/programm/beru ... 012#inhalt
adrianinsaval
Veteran
Posts: 3055
Joined: Thu Apr 05, 2018 5:15 pm

Re: Speed ​​by techdraw

Post by adrianinsaval »

The file has errors when I open it, anyways I don't think TechDraw_ActiveView is a comparable equivalent to Draft_Shape2DView, it should be compared with TechDraw_View instead
User avatar
uwestoehr
Veteran
Posts: 4249
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany

Re: Speed ​​by techdraw

Post by uwestoehr »

thomas-neemann wrote: Fri Jul 01, 2022 5:41 pm the problem is described here:
Can you pleasereport the bug the normal way:
- what file have you used?
- what is your FreeCAD version?
- what did you do, step by step and at what step occurred what problem?

(Linking a repository with a 5year old FreeCAD file is not super helpful.)
User avatar
thomas-neemann
Veteran
Posts: 6612
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE

Re: Speed ​​by techdraw

Post by thomas-neemann »

uwestoehr wrote: Fri Jul 01, 2022 5:52 pm ...
I will create a video with a fresh file

Code: Select all

OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: German/Germany (de_DE)
Installed mods: 
  * InventorLoader 1.3.0
  * Curves 0.5.0
ich biete freecad online-support an, als mini-job
VHS Freecad Webseminare Herbst 2022
https://www.vhs-lingen.de/programm/beru ... 011#inhalt
https://www.vhs-lingen.de/programm/beru ... 012#inhalt
adrianinsaval
Veteran
Posts: 3055
Joined: Thu Apr 05, 2018 5:15 pm

Re: Speed ​​by techdraw

Post by adrianinsaval »

consider using Macro Recompute Profiler if possible for your tests and compare using TechDraw_View not TechDraw_ActiveView as the second is not really equivalent to Draft_Shape2DView
User avatar
wandererfan
Veteran
Posts: 4765
Joined: Tue Nov 06, 2012 5:42 pm

Re: Speed ​​by techdraw

Post by wandererfan »

thomas-neemann wrote: Fri Jul 01, 2022 5:41 pm
I'm not sure I understand the issue.

Draft.Shape2View uses the same OCC functions as TechDraw.NewView. If you run both, you run those functions twice, so I can't see that being faster.

If the issue is that TechDraw.ActiveView is too slow, then that could be. I don't use that function as it never seems to quite reflect the 3d window which is what it is supposed to do. Just running a test now with the building file and it seems to be stuck in a loop.
User avatar
thomas-neemann
Veteran
Posts: 6612
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE

Re: Speed ​​by techdraw

Post by thomas-neemann »

uwestoehr wrote: Fri Jul 01, 2022 5:52 pm ...

adrianinsaval wrote: Fri Jul 01, 2022 6:15 pm ...

wandererfan wrote: Sat Jul 02, 2022 1:32 am ....

Unfortunately I did not find a large current fcstd building file. I have this

https://grabcad.com/library/single-storey-house-3d-1


step file used, the age should not play a role. i couldn't find any method with techdraw that is fast. in the video it lasted over 20 minutes.

workaround: the pdf print method took 10 seconds. if dimensions are required, you can create them with arch-draft in the 3d window (non-parametric)



https://www.youtube.com/watch?v=LU9Tg5UAf-s

phpBB [video]


Code: Select all

OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: German/Germany (de_DE)
Installed mods: 
  * InventorLoader 1.3.0
  * Curves 0.5.0
ich biete freecad online-support an, als mini-job
VHS Freecad Webseminare Herbst 2022
https://www.vhs-lingen.de/programm/beru ... 011#inhalt
https://www.vhs-lingen.de/programm/beru ... 012#inhalt
User avatar
uwestoehr
Veteran
Posts: 4249
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany

Re: Speed ​​by techdraw

Post by uwestoehr »

thomas-neemann wrote: Sat Jul 02, 2022 4:42 am Unfortunately I did not find a large current fcstd building file. I have this

https://grabcad.com/library/single-storey-house-3d-1
I cannot download the STEP file because I have no account to that website.

However, can you please report it the normal way:
- create a FreeCAD example file using FreeCAD 0.20. If it is too large for the forum, feel free to open an issue in GitHub and attach the file there zipped.
- write here what you did and what happened. This is an English forum (you have German menus and sound in your video) and we need a FreeCAD file.
User avatar
thomas-neemann
Veteran
Posts: 6612
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE

Re: Speed ​​by techdraw

Post by thomas-neemann »

uwestoehr wrote: Sat Jul 02, 2022 3:08 pm ...
I will try to create such a file next time
ich biete freecad online-support an, als mini-job
VHS Freecad Webseminare Herbst 2022
https://www.vhs-lingen.de/programm/beru ... 011#inhalt
https://www.vhs-lingen.de/programm/beru ... 012#inhalt
User avatar
thomas-neemann
Veteran
Posts: 6612
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE

Re: Speed ​​by techdraw

Post by thomas-neemann »

uwestoehr wrote: Sat Jul 02, 2022 3:08 pm ...
here is a file that i recently created myself in freecad. there are also step and stl imports included, which I think is normal. It took 33 minutes to get here.

Bildschirmfoto_2022-07-02_19-20-38.png
Bildschirmfoto_2022-07-02_19-20-38.png (39.13 KiB) Viewed 544 times

Saving was quick as always, I canceled opening it, and he'll probably do it again right away.

the stl content is missing in the techdraw. they are on the pdf.

Bildschirmfoto_2022-07-02_19-33-36.png
Bildschirmfoto_2022-07-02_19-33-36.png (151.23 KiB) Viewed 544 times

here is the download link for the file


https://drive.google.com/file/d/19oOyBo ... sp=sharing
ich biete freecad online-support an, als mini-job
VHS Freecad Webseminare Herbst 2022
https://www.vhs-lingen.de/programm/beru ... 011#inhalt
https://www.vhs-lingen.de/programm/beru ... 012#inhalt
Post Reply