Arch Frame problem/bug

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Cadoss
Posts: 2
Joined: Sun Jan 09, 2022 7:29 pm

Arch Frame problem/bug

Post by Cadoss »

Hi!

I'm having problem with Arch Frame when trying to create a beam using the Frame in 0.20.
I've created a simple example, containing a line and a profile.
The error I'm getting is the following.

19:25:22 Traceback (most recent call last):
File "/tmp/.mount_FreeCAih98zL/usr/Mod/Arch/ArchFrame.py", line 231, in execute
angle = normal.getAngle(axis)
<class 'AttributeError'>: 'NoneType' object has no attribute 'getAngle'
19:25:22 Recompute failed! Please check report view.


This started sometime during the autumn using 0.20, I can't say exactly at what version it started.
It works in 0.19.3 appimage but causing an error in the latest 0.20 appimage.
OS: Debian GNU/Linux 11 (bullseye) (MATE/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.27008 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 9162733)
Hash: 91627338a44371fe9a8e815b4900f62558af98a1
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Regards!
Attachments
arch_frame_test_019.FCStd
(9.57 KiB) Downloaded 21 times
arch_frame_test_020.FCStd
(8.98 KiB) Downloaded 21 times
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

Re: Arch Frame problem/bug

Post by Roy_043 »

Confirmed. This commit is the cause:
https://github.com/FreeCAD/FreeCAD/comm ... c934de5eec

Will try to have a look later.
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

Re: Arch Frame problem/bug

Post by Roy_043 »

Here is the new ArchFrame.py file for testing. The rotation behavior of the profile is more predictable than the V0.19 version. Especially for diagonal extrusion paths the rotation was hard to understand in V0.19.
Attachments
frame-test.png
frame-test.png (27.21 KiB) Viewed 2468 times
frame-test.FCStd
(61.35 KiB) Downloaded 21 times
ArchFrame.py
(11.91 KiB) Downloaded 21 times
Cadoss
Posts: 2
Joined: Sun Jan 09, 2022 7:29 pm

Re: Arch Frame problem/bug

Post by Cadoss »

Hi!

Sorry for the delayed response!

I replaced ArchFrame.py in the appimage with yours, and it works nicely now!

Many thanks!
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

Re: Arch Frame problem/bug

Post by Roy_043 »

Thanks for checking.

There are two other issues related to Arch_Frame that should perhaps be discussed. See: https://forum.freecadweb.org/viewtopic.php?f=23&t=65342.
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Arch Frame problem/bug

Post by thomas-neemann »

the problem is still there


testfile
frame-ko.FCStd
(9.75 KiB) Downloaded 21 times



Bildschirmfoto_2022-01-31_22-22-10.png
Bildschirmfoto_2022-01-31_22-22-10.png (134.26 KiB) Viewed 2207 times





OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.27319 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 67706b1)
Hash: 67706b14df32b91b948952ea2c9350948ba4d4db
Python version: 3.9.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: German/Germany (de_DE)
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

Re: Arch Frame problem/bug

Post by Roy_043 »

I have not yet made a PR.
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

Re: Arch Frame problem/bug

Post by Roy_043 »

User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Arch Frame problem/bug

Post by thomas-neemann »

Many Thanks
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

Re: Arch Frame problem/bug

Post by Roy_043 »

The PR has meanwhile been merged.
Post Reply