BIM FC V21 dev.: can not join a "U' shaped wire with 3 point arc

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
MartinNRW
Posts: 10
Joined: Wed Apr 26, 2023 5:16 pm

BIM FC V21 dev.: can not join a "U' shaped wire with 3 point arc

Post by MartinNRW »

Hi,
  • I construct a "U" shaped polyline and connect the U-Endpoints with a 3 point arc (they spnap very good within both endpoints - this was not possible in Version 20.02).
  • After marking both (polyline and 3 point arc) I run the Draft_JOIN
Is there any reason I can not join these both lines to give me a 2D shape?

I get following error:

13:14:32 ----------------
13:14:32 GuiCommand: Join
13:14:32 Auswahl: Wire, Arc
13:14:32 Traceback (most recent call last):
File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftutils\todo.py", line 162, in doTasks
Gui.doCommand(string)
File "<string>", line 1, in <module>
File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftfunctions\join.py", line 44, in join_wires
if join_two_wires(wire1, wire2):
File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftfunctions\join.py", line 58, in join_two_wires
wire2AbsPoints = [wire2.Placement.multVec(point) for point in wire2.Points]
AttributeError: 'FeaturePython' object has no attribute 'Points'

13:14:32 Traceback (most recent call last):
13:14:32 File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftutils\todo.py", line 162, in doTasks
13:14:32 Gui.doCommand(string)
13:14:32 File "<string>", line 1, in <module>
13:14:32 File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftfunctions\join.py", line 44, in join_wires
13:14:32 if join_two_wires(wire1, wire2):
13:14:32 File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftfunctions\join.py", line 58, in join_two_wires
13:14:32 wire2AbsPoints = [wire2.Placement.multVec(point) for point in wire2.Points]
13:14:32 AttributeError: 'FeaturePython' object has no attribute 'Points'
13:14:33
During handling of the above exception, another exception occurred:

13:14:33 Traceback (most recent call last):
13:14:33 File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftutils\todo.py", line 171, in doTasks
13:14:33 "in {1}".format(sys.exc_info()[0], func))
13:14:33 NameError: name 'sys' is not defined
13:14:33 Traceback (most recent call last):
File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftutils\todo.py", line 162, in doTasks
Gui.doCommand(string)
File "<string>", line 1, in <module>
File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftfunctions\join.py", line 44, in join_wires
if join_two_wires(wire1, wire2):
File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftfunctions\join.py", line 58, in join_two_wires
wire2AbsPoints = [wire2.Placement.multVec(point) for point in wire2.Points]
AttributeError: 'FeaturePython' object has no attribute 'Points'

13:14:33 Traceback (most recent call last):
13:14:33 File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftutils\todo.py", line 162, in doTasks
13:14:33 Gui.doCommand(string)
13:14:33 File "<string>", line 1, in <module>
13:14:33 File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftfunctions\join.py", line 44, in join_wires
13:14:33 if join_two_wires(wire1, wire2):
13:14:33 File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftfunctions\join.py", line 58, in join_two_wires
13:14:33 wire2AbsPoints = [wire2.Placement.multVec(point) for point in wire2.Points]
13:14:33 AttributeError: 'FeaturePython' object has no attribute 'Points'
13:14:33
During handling of the above exception, another exception occurred:

13:14:33 Traceback (most recent call last):
13:14:33 File "C:\Program Files\FreeCAD 0.21\Mod\Draft\draftutils\todo.py", line 171, in doTasks
13:14:33 "in {1}".format(sys.exc_info()[0], func))
13:14:33 NameError: name 'sys' is not defined

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.32552 (Git)
Build type: Release
Branch: master
Hash: e2b3a5d2f791fb78a61daac9bdab374058f682f2
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * BIM 2021.12.0
User avatar
ragohix769
Posts: 565
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: BIM FC V21 dev.: can not join a "U' shaped wire with 3 point arc

Post by ragohix769 »

Try with "upgrade" command https://wiki.freecad.org/Draft_Upgrade, rather then "join", do that 2 times and you have your shape all in one :-)
Attachments
we.png
we.png (209.15 KiB) Viewed 974 times
we.jpg
we.jpg (145.47 KiB) Viewed 974 times
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
MartinNRW
Posts: 10
Joined: Wed Apr 26, 2023 5:16 pm

Re: BIM FC V21 dev.: can not join a "U' shaped wire with 3 point arc

Post by MartinNRW »

Hi @ragohix769 ,

OK! It seems I a still have a lot to learn ...

Thank you for your quick answer! It works for me too.

But for my understanding: Why can 2 Draft wires not be joined to form a new Object? Is there a reason why this is impossible?

Best Regards, Martin
User avatar
ragohix769
Posts: 565
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: BIM FC V21 dev.: can not join a "U' shaped wire with 3 point arc

Post by ragohix769 »

MartinNRW wrote: Tue May 09, 2023 3:06 pm Hi @ragohix769 ,

OK! It seems I a still have a lot to learn ...

Thank you for your quick answer! It works for me too.

But for my understanding: Why can 2 Draft wires not be joined to form a new Object? Is there a reason why this is impossible?

Best Regards, Martin
It was very very strange to me too, at the beginning. The "upgrade" command is IMHO unintuitive, but when you understand it works! I'm glad you solved! ;-)
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: BIM FC V21 dev.: can not join a "U' shaped wire with 3 point arc

Post by yorik »

The reason is that the Draft wire cannot have curves at the moment...
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: BIM FC V21 dev.: can not join a "U' shaped wire with 3 point arc

Post by thomas-neemann »

MartinNRW wrote: Tue May 09, 2023 11:27 am
is draft upgrade a solution for you?

Bildschirmfoto_2023-05-18_09-25-21.png
Bildschirmfoto_2023-05-18_09-25-21.png (52.54 KiB) Viewed 598 times
925tn.FCStd
(3.14 KiB) Downloaded 25 times
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Post Reply