[ Bug ? Resolved ] TechDraw ArchView fails on some BuildingPart

[ Bug ? Resolved - see https://forum.freecadweb.org/viewtopic.php?f=23&t=43499#p371050]

Hi, testing the TechDraw ArchView again using the Villa Savoye model.

Found using BuildingPart as source of ArchView (in lieu of ArchSection) very handy ! :slight_smile:

Just find it works on G/F, 2/F, but not on 1/F as shown in screencapture. File of the model at [EDIT - link fix]https://github.com/paullee0/FreeCAD_Villa-Savoye

Any idea ? Thanks.



Screenshot from 2020-02-19 23-35-07.png

This is going to be a problem. We just put a check into master to only accept ArchSection as Source for ArchView because we were getting crashes if the wrong object type was selected. If ArchView is supposed to accept objects other than ArchSection, we will have to change that check. I’ll need some input on which Arch objects should be allowed (and how to identify them).

Just find it works on G/F, 2/F, but not on 1/F as shown in screencapture.

url is messed up.

I get bunches of messages when I recompute this file:

<string>(1)<class 'ModuleNotFoundError'>: No module named 'ArchSketchObject'
<input>:1101:6: Could not resolve property: none
<input>:180:6: Could not resolve property: none
ArchSketchObject add-on module is not installed yet
109.649 <App> Document.cpp(3204): Villa_Savoye#Wall003 still touched after recompute

Aside from that, the actual problem is that 1F does not return any Svg when requested. GF returns a whole bunch of Svg.

BuildingPart should be acceptable as indicated in the tip of the Source attribute of the ArchView, @Yorik should have mentioned it somewhere in the forum but I just can’t find it, and not mention in the wiki (yet?) :slight_smile:

Screenshot from 2020-02-20 07-36-11.png

:blush: doubled the Url, fixed now.

Ah yes, I try using SketchObjectPython in that modelling, no need the module if editing the model is not required.
Module at https://github.com/paullee0/FreeCAD_SketchArch

I suspected there is an object or a few of them that is / are not accepted and break the process, but there is no error in the report view …



The Arch_BuildingPart automagically includes an Arch_SectionPlane. So, I think TechDraw only needs to accept two objects at the moment, either a true section plane, or an Arch_BuildingPart. Arch_Floors and Arch_Buildings should also be accepted since they are BuildingPart instances.

Yorik’s info should be included in the wiki :slight_smile:

Found I did not fully understand how BuildingPart works - Need to set its Placement to the level to cut the floor, it was at 0,0,0 so didn’t cut the objects … Hmmm… may need to do something make it automatic :slight_smile:

But found another ‘bug’… probably in another post :smiley:

Objects at 0,0,3300 but BuildingPart at 0,0,0

  • So its section plane / ArchView does not cut at right level
  • BuildingPart for 1F cut objects at BuildingPart for GF :laughing:
    Screenshot from 2020-02-22 07-31-44.png