hi,
i'm not sure if this is a bug or not.. I'm using the devolper version and even re installed it.
When changing the WCS to another than G54 directly after referencing the machine, i will get a backplot error when loading a nc program. I use the example ones "3D_CHIPS.ngs and THREADING.ngc..
File: vtk_backplot.py line 767, in load_program
point_01_pos = self.path_offset_start_point[prev_wcs_index]
it happens here:
LOG.debug("
length(path_actors): {}".format(len(self.path_actors)))
if len(self.path_actors) > 1:
# Load the start point of rapid from the next offset paths
LOG.error(f"prev_wcs_index {prev_wcs_index} not found in path_offset_start_point")
point_01_pos = self.path_offset_start_point[prev_wcs_index]
out:
[qtpyvcp.widgets.display_widgets.vtk_backplot.vtk_backplot][DEBUG]
wcs_index: 1 (vtk_backplot.py:705)
[qtpyvcp.widgets.display_widgets.vtk_backplot.vtk_backplot][DEBUG]
current_offsets: [50.0, 50.0, 0.0, 0.0, 0.0, 0.0] (vtk_backplot.py:709)
[qtpyvcp.widgets.display_widgets.vtk_backplot.vtk_backplot][DEBUG]
current_position: 50.0 (vtk_backplot.py:750)
[qtpyvcp.widgets.display_widgets.vtk_backplot.vtk_backplot][DEBUG]
length(path_actors): 2 (vtk_backplot.py:766)
[qtpyvcp.widgets.display_widgets.vtk_backplot.vtk_backplot][ERROR] prev_wcs_index 0 not found in path_offset_start_point (vtk_backplot.py:769)
[qtpyvcp.app.launcher][CRITICAL] Unhandled exception in vtk_backplot.py line 770 (launcher.py:37)
Seems that this code was changed two months ago..
I just found out that there should be a blank.ngc loaded on startup for initialisation. So i added a ngc file with:
(New Program)
M30
and loaded it as default, but that will directly throw an error on startup:File
"/usr/lib/python3/dist-packages/qtpyvcp/widgets/display_widgets/vtk_backplot/vtk_backplot.py", line 767, in load_programpoint_01_pos = self.path_offset_start_point[prev_wcs_index]