View Issue Details

IDProjectCategoryView StatusLast Update
0003381PartBugpublic2018-05-28 14:58
Reporterker Assigned To 
Status closedResolutionfixed 
PlatformVirtual machineOSUbuntu 14.04.5 LTSOS Version14.04.5 LTS
Product Version0.17 
Fixed in Version0.18 
Summary0003381: CompoundFilter do not work in command line
DescriptionCompoundFilter does not work in Python script in non-GUI-mode.

The attached macro works OK running in the GUI, but when run with:
FreeCADCmd CompoundFilter_bug_example.FCMacro
in command line, it gives error:
Exception while processing file: CompoundFilter_bug_example.FCMacro ['NoneType' object has no attribute 'Proxy']

The problem is in the file Mod/Part/CompoundTools/, in line 47.
After replacing that line with
if obj.ViewObject:
the code works OK in command line, too. Maybe the correction is bad, bus still works.

My installation:
OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13407 (Git)
Build type: Release
Branch: master
Hash: 2c2d781aa686b731f2a0e754dc30ebb76f3553e0
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)

Described in Developers corner (after my post is accepted by an admin).
Steps To ReproduceRun the attached macro in command line.
FreeCAD Information



2018-03-20 16:13


CompoundFilter_bug_example.FCMacro (Attachment missing)


2018-03-21 16:19

reporter   ~0011050


2018-05-28 14:58

administrator   ~0011290

Issue History

Date Modified Username Field Change
2018-03-20 16:13 ker New Issue
2018-03-20 16:13 ker File Added: CompoundFilter_bug_example.FCMacro
2018-03-20 16:13 ker Tag Attached: App::Part
2018-03-21 16:19 ker Note Added: 0011050
2018-05-28 14:58 wmayer Status new => closed
2018-05-28 14:58 wmayer Resolution open => fixed
2018-05-28 14:58 wmayer Fixed in Version => 0.18
2018-05-28 14:58 wmayer Note Added: 0011290