View Issue Details

IDProjectCategoryView StatusLast Update
0002691ArchBugpublic2016-09-07 14:24
ReporterBerner Assigned Toyorik  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformAmd64OSUbuntu OS Version16.04.1 LTS
Summary0002691: Wall Function with rectangle build only a block
DescriptionThe following Python Script works on Version 16 without error and on Freecad 17 daily with error.

#!/usr/bin/python

#Create new document
App.newDocument("Unbenannt")
App.setActiveDocument("Unbenannt")
App.ActiveDocument=App.getDocument("Unbenannt")
Gui.ActiveDocument=Gui.getDocument("Unbenannt")
#App.getDocument("Unbenannt").saveAs("/tmp/Unbenannt.fcstd")
#End Create new document

#Activate ArchWorkbench
Gui.activateWorkbench("ArchWorkbench")
#End Activate ArchWorkbench


# Build Externals Walls EG
import FreeCAD
import DraftTools
import Draft
import ArchWall
import Arch

pl = FreeCAD.Placement()
pl.Rotation.Q = (0.0,-0.0,1.53080849893e-17,1.0)
pl.Base = FreeCAD.Vector(.0,0.0,0.0)
Draft.makeRectangle(length=9800.0,height=12100.0,placement=pl,face=True,support=None)
App.getDocument("Unbenannt").Rectangle.Placement=App.Placement(App.Vector(300.0,300.0,0), App.Rotation(App.Vector(0,0,1),0), App.Vector(0,0,0))
Arch.makeWall(FreeCAD.ActiveDocument.Rectangle)
App.getDocument("Unbenannt").getObject("Wall").Width = '600 mm'
# End build Externals Walls EG




OS: Ubuntu 16.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8353 (Git)
Build type: None
Branch: master
Hash: 04aa24ec00bcd05442b1b345757175a4459fc553
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

with regards
Berner
Steps To ReproduceOpen Freecad and exexfile("pythonscript from bugreport")
Additional InformationIn Debian 8.4.1 with Freecad 16 the Python-script works.
TagsNo tags attached.
FreeCAD Information

Activities

Berner

2016-09-05 17:23

reporter  

Wall.jpg (Attachment missing)

yorik

2016-09-07 01:33

administrator   ~0007306

I don't see where the problem is?
For me everything seems to work as expected...

Berner

2016-09-07 05:57

reporter  

Wall-0.16.jpg (Attachment missing)

Berner

2016-09-07 05:58

reporter   ~0007307

Please see the new uploaded file Wall-016.jpg.

with the same Python-Script the Walls are Walls not a Block.

with Regards
Berner

Berner

2016-09-07 09:07

reporter   ~0007308

Hello yorik,
i have now copied my .Freecad profile from Debian with Freecad 0.16 to Ubuntu with Freecad 0.17 and the block is gone.
Can this really depend on the profile ?

I have append my updated Pyhton-Script to build my house, wich has also errors:
Arch workbench activated
Traceback (most recent call last):
  File "/usr/lib/freecad-daily/Mod/Arch/ArchWall.py", line 503, in execute
    self.applyShape(obj,base,pl)
  File "/usr/lib/freecad-daily/Mod/Arch/ArchComponent.py", line 685, in applyShape
    self.computeAreas(obj)
  File "/usr/lib/freecad-daily/Mod/Arch/ArchComponent.py", line 712, in computeAreas
    pf = Part.Face(Part.Wire(Drawing.project(f,FreeCAD.Vector(0,0,1))[0].Edges))
<class 'Part.OCCError'>: BRep_API: command not done

The structure starts not at the same edge as the walls, i think i have a snap problem, but i cant solve it.
Question ?

Why it is not possible to convert every Part to a python-script (export) so people can reproduce her work with a script?

Things are easy to debug and check with new versions.

In macros i can change the names but the requests must use the old name wall or wall001, this is not helpfull in writing macros.
The namings should be changed like wall -> wall000 that the nameing is consistent for loops and when i change the name of an object i should be able the reference the new name not the old one.

Freecad is a good project but every time when i try to construct a easy part like the house or furniture i get frustrated
with the complexity of Freecad.

Please stop implementation new functions and work on usability for normal Users.
I am a System programmer for IBM Host computers and i know it is more fun to implement new functions and it is not easy
as developer to understand the problems of inexperienced users.

As a sample: in the attached haus.fcstd i have 3 Problems i cant solve:
1. Windows and doors in Floor OG are invisible when i make OG invisible that is OK, but at Floor EG the Windows and Doors
  are visible when i make the Floor invisible.
2. I inserted a section to make a 2D-Plan but teh section jumps from button to top of the wall when i give 1500mm z-Hight when i click OK. When i make 2 undo commands the section is on the right place.
3. I have not understand, why i cant activate the floor with the section on the half windows to create the 2D-Plan.

I now this Bug-Report is not the right place to solve these Problems, i hope that you discuss it with the other developers.
I hope you dont feel attacked, it should only be suggestions.

With regards
Berner

Berner

2016-09-07 09:07

reporter  

haus.fcstd (Attachment missing)

yorik

2016-09-07 14:23

administrator   ~0007309

Ah ok I see... It is not a bug but a feature. Rectangle (and any other closed Draft object) can now be a face or just a wire. You can change their MakeFace property for that. If it is a face, the wall uses it as base face like your first image. If not, you will get the result of your second image.

For your other complaints, this tracker is not a good place for that, please post on the forum instead, thanks.

Issue History

Date Modified Username Field Change
2016-09-05 17:23 Berner New Issue
2016-09-05 17:23 Berner File Added: Wall.jpg
2016-09-06 07:16 wmayer Project FreeCAD => Arch
2016-09-07 01:33 yorik Note Added: 0007306
2016-09-07 01:33 yorik Assigned To => yorik
2016-09-07 01:33 yorik Status new => feedback
2016-09-07 05:57 Berner File Added: Wall-0.16.jpg
2016-09-07 05:58 Berner Note Added: 0007307
2016-09-07 05:58 Berner Status feedback => assigned
2016-09-07 09:07 Berner Note Added: 0007308
2016-09-07 09:07 Berner File Added: haus.fcstd
2016-09-07 14:23 yorik Note Added: 0007309
2016-09-07 14:23 yorik Status assigned => closed
2016-09-07 14:24 yorik Resolution open => no change required