two glitches in simulator

Here's the place for discussion related to CAM/CNC and the development of the Path module.
schnebeck
Posts: 117
Joined: Thu Jun 22, 2017 8:04 pm

two glitches in simulator

Postby schnebeck » Tue May 22, 2018 8:27 am

Hi,

OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13728 (Git)
Build type: None
Branch: master
Hash: 4f5e304d64d79eb64d3b96f41cdc5293522958ef
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)

When there is a path op without tool-controller like 'fixture' simulation generates an error - although the operation is disabled in simulation

And there is a typo:

Code: Select all

freecad-daily/Mod/Path/PathScripts/PathSimulatorGui.py", line 490, in InvalidOperation
    return false
NameError: global name 'false' is not defined
false -> False

HTH

Thorsten
chrisb
Posts: 18223
Joined: Tue Mar 17, 2015 9:14 am

Re: two glitches in simulator

Postby chrisb » Tue May 22, 2018 11:32 am

The tool controller issue has been discussed here before. The search might give further information.
glockpod
Posts: 31
Joined: Tue May 23, 2017 7:06 pm

Re: two glitches in simulator

Postby glockpod » Sun May 27, 2018 1:34 pm

The problem still exists in the code base as of May 27.

The fix is simple, change all occurrences of the word "false" to "False" in the source for the file /usr/local/Mod/Path/PathScripts/PathSimulatorGui.py.
The effect of the typo is to prevent the start the PathSimulator simulation, and to burp up an error on stderr complaining about "false" not being defined.

It takes longer to describe the problem than it does to fix it.

-Chuck
roivai
Posts: 117
Joined: Thu Feb 02, 2017 5:29 pm
Location: Oulu, Finland

Re: two glitches in simulator

Postby roivai » Sun May 27, 2018 7:05 pm