section view and new version [solved]

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Vincent B
Veteran
Posts: 4733
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

section view and new version [solved]

Post by Vincent B »

The section view seems doesn't work anymore with this version.
Somebody to check out that?

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21097 (Git)
Build type: Release
Branch: master
Hash: a5ab09aa0941cc945e59848897b160f8cbfc0831
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
Last edited by Vincent B on Sat May 30, 2020 2:51 pm, edited 1 time in total.
User avatar
Vincent B
Veteran
Posts: 4733
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: section view and 0.19 21097

Post by Vincent B »

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21280 (Git)

Code: Select all

<Exception> File C:/Users/vince/AppData/Local/Temp/FreeCAD_Doc_c323b568-c7a6-4fa7-85a0-585e37464142_058bd4_14364/FreEB10.tmp does not exist.
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: File C:/Users/vince/AppData/Local/Temp/FreeCAD_Doc_c323b568-c7a6-4fa7-85a0-585e37464142_058bd4_14364/FreEB10.tmp does not exist.
Syres
Veteran
Posts: 2899
Joined: Thu Aug 09, 2018 11:14 am

Re: section view and 0.19 21097

Post by Syres »

GlouGlou wrote: Thu May 21, 2020 11:53 am The section view seems doesn't work anymore with this version.
Probably the reason you've had no responses up to now is no-one else is seeing the fault you describe. I created a brand new Techdraw page using my favourite test model and applied two section views with no errors in the Report View. The community seems to be experiencing quite a number of config file issues possibly with a number of users having 0.18 and 0.19 but using the same config files for both. I would never recommend this and therefore have a batch file specifically for 0.18 and another for 0.19. So therefore it's worth trying a rename of your user.cfg and system.cfg with FreeCAD closed, please give feedback whatever the outcome.


@wanderefan I am looking at a possible bug in the orientation of certain section views but I'll report that separately when I've done further testing on Linux as well.


OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21280 (Git)
Build type: Release
Branch: master
Hash: 6f3160db3e88733536c7eaf97ad7d6ebd21baccd
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)
User avatar
Vincent B
Veteran
Posts: 4733
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: section view and 0.19 21097

Post by Vincent B »

You're right. After have installed the new version of freecad, I saw the default repertory files (hatch...) was not good and must be right filled out. ;)
GeoffG
Posts: 33
Joined: Wed Jan 02, 2019 1:36 pm
Location: Western Australia
Contact:

Re: section view and new version [solved]

Post by GeoffG »

I'm seeing the same (or similar) problem on Linux. It's strange but the problem seems to raise its ugly head for me when I modify the TechDraw workbench's settings then restart FreeCAD.

Steps to reproduce:

1. rm -rf $HOME/.FreeCAD
2. Start FreeCAD
3. Create one or more section(s) through a part
4. Save and exit FreeCAD
5. Restart FreeCAD and open model
6. Create another section through a part (to show that it still works but it's not absolutely necessary)
7. Modify the font in TechDraw preferences (I use Open Sans)
8. Exit and restart FreeCAD
9. Open the model
10. Attempt to create a section through a part - it fails at this point (The error message is: File /tmp/FreeCAD_Doc_a59905d2-2c78-4920-9fab-7ddd51b3da39_bab6ba_135044/FreeCAD_Doc_a59905d2-2c78-4920-9fab-7ddd51b3da39_bab6ba_135044SectionView004SvgHatch.svgBsMZ2B does not exist.)
11. Save and exit FreeCAD
12. rm -rf $HOME/.FreeCAD
13. Restart FreeCAD and open the model

You should see a SectionView item in the Model View that is not associated with the ProjGroup where all the sections were successfully created. The SectionView I'm referring to is called SectionView003 in the attached model.

I have attached the model that I used.


OS: Ubuntu 20.04 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21514 (Git) AppImage
Build type: Release
Branch: master
Hash: 89ddab33f692a9bd739171689f9ab0eb58d64b35
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/Australia (en_AU)
Attachments
Sliding JAw.FCStd
(60.45 KiB) Downloaded 57 times
User avatar
wandererfan
Veteran
Posts: 6309
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: section view and new version [solved]

Post by wandererfan »

GeoffG wrote: Sun Jun 14, 2020 11:51 am Version: 0.19.21514 (Git) AppImage
Haven't managed to duplicate your results so far, but I'm using a version that is 120 commits ahead of yours.

OS: Linux Mint 19 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21639 +5 (Git)
Build type: debug
Branch: sLineRotate2
Hash: 87430065d25f9505d50a750306ff312fe7989fb4
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)

I've seen that message in the past, but not lately. There was some work done on managing the svg files for hatches, so maybe the problem doesn't exist now?
GeoffG
Posts: 33
Joined: Wed Jan 02, 2019 1:36 pm
Location: Western Australia
Contact:

Re: section view and new version [solved]

Post by GeoffG »

wandererfan wrote: Mon Jun 15, 2020 12:57 pm I've seen that message in the past, but not lately. There was some work done on managing the svg files for hatches, so maybe the problem doesn't exist now?
Thanks for letting me know your experience. Based on your feedback I decided to download the "latest" appimage as at 16-Jun-20, but unfortunately the problem still exists as I described it. As soon as I changed the TechDraw font and restarted FreeCAD the problem raised its ugly head. Looks like I won't be changing the font...at least until the "latest" appimage is at least at the same revision as your version. (At this stage I don't have the time nor inclination to build FreeCAD from scratch but maybe in the future...)

OS: Ubuntu 20.04 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21622 (Git) AppImage
Build type: Release
Branch: master
Hash: f5a5bf7900e9a5cdbb5f7f82fcf5123b27c9703f
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/Australia (en_AU)
NuriEv
Posts: 31
Joined: Thu Jun 18, 2020 10:02 pm

Re: section view and new version [solved]

Post by NuriEv »

Hope this may provide some clues to the current "section" problem in techdraw.

Try:
New file>Part>cube>techdraw>view>section

Result:
- Section Tasks tab is greyed out, and doesn't function:
- No section view is generated.
- Console and report output are output are as follows.

Python 3.8.3 | packaged by conda-forge | (default, Jun 1 2020, 17:55:00)
[GCC 7.5.0] on linux
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> # Gui.Selection.clearSelection()
>>> # Gui.Selection.addSelection('Unnamed','View')
>>> ### Begin command TechDraw_SectionView
>>> App.ActiveDocument.recompute()
>>> ### End command TechDraw_SectionView
>>> App.activeDocument().addObject('TechDraw::DrawViewSection','SectionView002')
>>> App.activeDocument().addObject('TechDraw::DrawViewSection','SectionView003')
>>> Gui.runCommand('Std_About',0)
>>>

<Exception> File /tmp/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429SectionView002SvgHatch.svg3sCsZU does not exist.
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: File /tmp/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429SectionView002SvgHatch.svg3sCsZU does not exist.
<Exception> File /tmp/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429SectionView003SvgHatch.svgvxYW1X does not exist.
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: File /tmp/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429SectionView003SvgHatch.svgvxYW1X does not exist.

OS: Ubuntu 20.04 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21654 (Git) AppImage
Build type: Release
Branch: master
Hash: ddf0cf3136a6c5a459abae4bf1f9c714f6f45c86
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
User avatar
wandererfan
Veteran
Posts: 6309
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: section view and new version [solved]

Post by wandererfan »

NuriEv wrote: Thu Jun 18, 2020 10:07 pm - Section Tasks tab is greyed out, and doesn't function:
- No section view is generated.
Like this?
greyDialog.png
greyDialog.png (30.59 KiB) Viewed 1612 times
This is what the dialog look like before selecting an orientation (large bluish buttons). Once you select an orientation, the data entry fields should become active.
Python 3.8.3 | packaged by conda-forge | (default, Jun 1 2020, 17:55:00)
[GCC 7.5.0] on linux
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> # Gui.Selection.clearSelection()
>>> # Gui.Selection.addSelection('Unnamed','View')
>>> ### Begin command TechDraw_SectionView
>>> App.ActiveDocument.recompute()
>>> ### End command TechDraw_SectionView
>>> App.activeDocument().addObject('TechDraw::DrawViewSection','SectionView002')
>>> App.activeDocument().addObject('TechDraw::DrawViewSection','SectionView003')

>>> Gui.runCommand('Std_About',0)
>>>
This says that third and fourth SectionView objects are being added to the document. There is no sign of them in the tree or on the page? Are "SectionView" and "SectionView001" in the document?
<Exception> File /tmp/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429SectionView002SvgHatch.svg3sCsZU does not exist.
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: File /tmp/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429SectionView002SvgHatch.svg3sCsZU does not exist.
<Exception> File /tmp/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429SectionView003SvgHatch.svgvxYW1X does not exist.
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: File /tmp/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429/FreeCAD_Doc_6e151d96-22ad-4848-aa45-ace821f9a29f_3ca812_33429SectionView003SvgHatch.svgvxYW1X does not exist.
This has been reported before with the AppImage version, but I can not duplicate it here with this:

OS: Linux Mint 19 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21718 (Git) AppImage
Build type: Release
Branch: master
Hash: 002e25b5617f2c79f65968f1f82f7267899965c3
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/Canada (en_CA)
Post Reply