New Arch Schedule tool

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
saso
Veteran
Posts: 1920
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: New Arch Schedule tool

Post by saso »

yorik wrote:But in all cases if I saved the file and reopened it, the spreadsheet displays OK.
Yes, I confirm this, if I save and reopen it starts to bahave normal, but as soon as I do some modifications to the schedule definition and click Ok the strange behavior is back, so it is actually a quite annoying bug...

Actually if the spreadsheet is opened the error does not show right on clicking the Ok, but as soon as I click with the mouse in the spreadsheet after I click Ok... Just a bit of detail if someone could get an idea what might be wrong.
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: New Arch Schedule tool

Post by yorik »

We need to debug/narrow that problem further. At the moment I still don't know for sure if the problem is in the spreadsheet or the way we're using it in Arch... I'm trying to reproduce it from the python console, but so far couldn't make it happen again
ahmedyounis
Posts: 1
Joined: Mon Feb 01, 2016 1:48 pm

Re: New Arch Schedule tool

Post by ahmedyounis »

yorik first off all i want to thank you for all efforts

im new to (bim appl) - im care about open source tools because it have more features and developments

finaly im wait from freecad more and more i want it to be the first

im noted the interface is new as you said you rewritten the code - i like this new arranged objects in outliner - how can i download this new interface (on linux system)- and how can i make a project from start to finish and extract all sections and elevations any tutorials can i found on youtube ?

thank you regards
User avatar
hardeeprai
Posts: 177
Joined: Sun May 23, 2010 2:41 pm
Location: Ludhiana, Punjab, India
Contact:

Re: New Arch Schedule tool

Post by hardeeprai »

yorik wrote: Sat Sep 03, 2016 10:08 pm We need to debug/narrow that problem further. At the moment I still don't know for sure if the problem is in the spreadsheet or the way we're using it in Arch... I'm trying to reproduce it from the python console, but so far couldn't make it happen again
Still this issue is there in both stable (.17) and Development FreeCAD (.18).

I found that it worked fine (with bug as reported there which makes spreadsheet blank, and one need to open it to see content in that) for sample file given in this thread: https://forum.freecadweb.org/download/file.php?id=26176

I made a very small file (a wall with 2 windows and 1 door): https://github.com/GreatDevelopers/Free ... d?raw=true

However on trying to get list of windows, I get error:
OPERATION: Windows
==================
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Arch/ArchSchedule.py", line 129, in execute
if objs[0].isDerivedFrom("App::DocumentObjectGroup"):
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'isDerivedFrom'
What could be the issue?
--
H.S.Rai
User avatar
hardeeprai
Posts: 177
Joined: Sun May 23, 2010 2:41 pm
Location: Ludhiana, Punjab, India
Contact:

Re: New Arch Schedule tool

Post by hardeeprai »

hardeeprai wrote: Sun Nov 11, 2018 3:25 pm
What could be the issue?
and same error comes, for file from BIM Modelling Tutorial: https://www.freecadweb.org/wiki/Manual:BIM_modeling i.e file:
https://github.com/yorikvanhavre/FreeC ... ouse.FCStd

On opening file:


freecad-daily House.fcstd
FreeCAD 0.18, Libs: 0.18R15169 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2018
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

Enumeration index -1 is out of range, ignore it
Enumeration index -1 is out of range, ignore it
Enumeration index -1 is out of range, ignore it
Enumeration index -1 is out of range, ignore it

In tree view, Schedule show red sign, i.e. error.

On double clicking it, and pressing OK (it had command to count windows [link to file with schedule: https://github.com/GreatDevelopers/Free ... d?raw=true ] ), shows error:


OPERATION: Window
=================
Traceback (most recent call last):
File "/usr/lib/freecad-daily/Mod/Arch/ArchSchedule.py", line 134, in execute
if objs[0].isDerivedFrom("App::DocumentObjectGroup"):
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'isDerivedFrom'
Document::recompute(): Result still touched after recompute

and hovering mouse on schedule in Tree view. displays:


Schedule: 'NoneType' object has no attribute 'isDerivedFrom'

Is there issue to Arch -> Schedule or the way BIM Model is created?
--
H.S.Rai
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: New Arch Schedule tool

Post by yorik »

I just fixed a bug in the schedule tool in git commit c18785fdb, but there might be some additional issue specific to this model, I'll have a better look
Post Reply