[Bug ?]Wall,Structure freecad 0.19

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
FATHI RAMMAH
Posts: 71
Joined: Sun Jul 09, 2017 7:38 pm
Contact:

[Bug ?]Wall,Structure freecad 0.19

Post by FATHI RAMMAH »

look at the report
Attachments
1.PNG
1.PNG (257.77 KiB) Viewed 1335 times
chrisb
Veteran
Posts: 54160
Joined: Tue Mar 17, 2015 9:14 am

Re: [Bug ?]Wall,Structure freecad 0.19

Post by chrisb »

It would be fantastic if you tell us what you have done to get this message. And it might be helpful to copy the error text into code tags </> as well as the full FreeCAD info into your message.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: [Bug ?]Wall,Structure freecad 0.19

Post by bitacovir »

chrisb wrote: Sat Mar 30, 2019 2:59 am It would be fantastic if you tell us what you have done to get this message. And it might be helpful to copy the error text into code tags </> as well as the full FreeCAD info into your message.
In other words... just follow the rules: https://forum.freecadweb.org/viewtopic.php?f=3&t=2264
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
FATHI RAMMAH
Posts: 71
Joined: Sun Jul 09, 2017 7:38 pm
Contact:

Re: [Bug ?]Wall,Structure freecad 0.19

Post by FATHI RAMMAH »

i'm sorry ,i thought the picture will describe the problem it's my fault :D :D :D
anyway the problem is when i try to model a wall object or structure object i get error and it says there is some thing wrong with assigning of the IfcRole to the object .

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16274 (Git)
Build type: Release
Branch: master
Hash: 7c760259a389b38b76da78e4f6e1f9be66714842
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)
chrisb
Veteran
Posts: 54160
Joined: Tue Mar 17, 2015 9:14 am

Re: [Bug ?]Wall,Structure freecad 0.19

Post by chrisb »

FATHI RAMMAH wrote: Sat Mar 30, 2019 3:55 am anyway the problem is when i try to model a wall object or structure object i get error
If that's what you call a "detailed description" I might give the detailed answer "it works quite well here".

To give an example, here is what I have done to get it working:
- Start FreeCAD
- switch to Arch workbench
- click Icon "Creates structure object ..."
- click a point in 3D panel

These are the messages I see in report view:

Code: Select all

Point options : S:Snap On/Off, [:Increase snap radius, ]:Decrease snap radius, X:Restrict X, Y:Restrict Y, Z:Restrict Z, Q:Add custom snap point, `:Cycle snap object
OS: macOS 10.13
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16087 (Git)
Build type: Release
Branch: master
Hash: ec86db4bfbb1f7e165d0620cb4d85c2b9beb36bc
Python version: 3.7.1
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
FATHI RAMMAH
Posts: 71
Joined: Sun Jul 09, 2017 7:38 pm
Contact:

Re: [Bug ?]Wall,Structure freecad 0.19

Post by FATHI RAMMAH »

chrisb wrote: Sat Mar 30, 2019 4:26 am
FATHI RAMMAH wrote: Sat Mar 30, 2019 3:55 am anyway the problem is when i try to model a wall object or structure object i get error
If that's what you call a "detailed description" I might give the detailed answer "it works quite well here".

Here is what I have done to get it working:
- Start FreeCAD
- switch to Arch workbench
- click Icon "Creates structure object ..."
- click a point in 3D panel

These are the messages I see in report view:

Code: Select all

Point options : S:Snap On/Off, [:Increase snap radius, ]:Decrease snap radius, X:Restrict X, Y:Restrict Y, Z:Restrict Z, Q:Add custom snap point, `:Cycle snap object
OS: macOS 10.13
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16087 (Git)
Build type: Release
Branch: master
Hash: ec86db4bfbb1f7e165d0620cb4d85c2b9beb36bc
Python version: 3.7.1
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
your version is : 0.18.16087 (Git)
my version is : 0.19.16274 (Git)
not the same ,also i have 0.18 version and it works good and i don't know what is the problem with my description ,i describe the problem and added a picture to describe the warning report and it's very clear so no need to repeat
Dgingrey
Posts: 21
Joined: Thu Mar 15, 2018 6:08 pm

Re: [Bug ?]Wall,Structure freecad 0.19

Post by Dgingrey »

I am getting the same error messages when trying to form a wall, structure or panel from a d-wire.

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16274 (Git)
Build type: Release
Branch: master
Hash: 7c760259a389b38b76da78e4f6e1f9be66714842
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)

To reproduce the error I:
Create a new project.
Switch to the Arch workbench
Draw a d-wire and select it.
Click on the Wall, Structure or Panel tool buttom.

I get this in the Report window:
Running the Python command 'Arch_Wall' failed:
Traceback (most recent call last):
File "C:\FreeCad\Mod\Arch\ArchWall.py", line 224, in Activated
FreeCADGui.doCommand('obj = Arch.makeWall(FreeCAD.ActiveDocument.'+selobj.Object.Name+')')
File "<string>", line 1, in <module>
File "C:\FreeCad\Mod\Arch\ArchWall.py", line 67, in makeWall
_Wall(obj)
File "C:\FreeCad\Mod\Arch\ArchWall.py", line 520, in __init__
ArchComponent.Component.__init__(self,obj)
File "C:\FreeCad\Mod\Arch\ArchComponent.py", line 166, in __init__
Component.setProperties(self,obj)
File "C:\FreeCad\Mod\Arch\ArchComponent.py", line 194, in setProperties
obj.IfcRole = IfcRoles

Attribute (Name: IfcRole) error: 'type in list must be str or unicode, not unicode' Traceback (most recent call last):
File "C:\FreeCad\Mod\Arch\ArchWall.py", line 578, in execute
extdata = self.getExtrusionData(obj)
File "C:\FreeCad\Mod\Arch\ArchWall.py", line 766, in getExtrusionData
length = obj.Length.Value
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'Length'

I get the same results using the 32 bit version of v19.16274.
I also was able to reproduce the error on a different PC running Windows 10 32-bit with the same version of FreeCad v19.16274.
Version 18.16093 works correctly on both PC's.
Attachments
Wall.PNG
Wall.PNG (200.33 KiB) Viewed 1232 times
User avatar
yorik
Founder
Posts: 13659
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: [Bug ?]Wall,Structure freecad 0.19

Post by yorik »

'type in list must be str or unicode, not unicode'
Crazy.. that doesn't make any sense :cry:
It seems a python2 issue though, not getting that error with py3. I'll rebuild a py2 version to see...
Post Reply