two glitches in simulator

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
schnebeck
Posts: 130
Joined: Thu Jun 22, 2017 8:04 pm

two glitches in simulator

Post by schnebeck »

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
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: two glitches in simulator

Post by chrisb »

The tool controller issue has been discussed here before. The search might give further information.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
glockpod
Posts: 31
Joined: Tue May 23, 2017 7:06 pm

Re: two glitches in simulator

Post by glockpod »

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

Post by roivai »

Post Reply