Skip to content

Running AddTb macro while output of FullProccess macro open & active in FreeCAD causes lots errors #4

@spanner888

Description

@spanner888

Superficial look shows for every ToolBit added to Library, the following errors occur FROM THE OPEN DOCUMENT, which contains the shape/job etc created from FullProcess macro.

Errors do NOT occur if output, ie document and sometimes views are closed before running AddTb macro.

Maybe because as document not saved triggering some recomputes, but doc/job/ops/tools all valid prior!

10:22:47  Example 3. Create many tools: dia to dia_max, increment dia_inc
10:22:47  	ToolBit diameters to be created:  [8.2 8.4 8.6 8.8 9. ]
10:22:47  	Adding ToolBit Shape: endmill, Dia: 8.2 mm Name: 4F_D8.2-L50.0_endmill
10:22:47  Base.ERROR: No Tool Controller is selected. We need a tool to build a Path.
10:22:47  pyException: Traceback (most recent call last):
  File "/tmp/.mount_FC_wklILG0sp/usr/Mod/CAM/Path/Dressup/Boundary.py", line 105, in execute
    obj.Path = pb.execute()
               ^^^^^^^^^^^^
  File "/tmp/.mount_FC_wklILG0sp/usr/Mod/CAM/Path/Dressup/Boundary.py", line 162, in execute
    "G0", {"Z": self.safeHeight, "F": tc.VertRapid.Value}
                                      ^^^^^^^^^^^^
<class 'AttributeError'>: 'NoneType' object has no attribute 'VertRapid'
10:22:47  DressupPathBoundary: 'NoneType' object has no attribute 'VertRapid'
10:22:47  pyException: Traceback (most recent call last):
  File "/tmp/.mount_FC_wklILG0sp/usr/Mod/CAM/Path/Dressup/Boundary.py", line 105, in execute
    obj.Path = pb.execute()
               ^^^^^^^^^^^^
  File "/tmp/.mount_FC_wklILG0sp/usr/Mod/CAM/Path/Dressup/Boundary.py", line 162, in execute
    "G0", {"Z": self.safeHeight, "F": tc.VertRapid.Value}
                                      ^^^^^^^^^^^^
<class 'AttributeError'>: 'NoneType' object has no attribute 'VertRapid'
10:22:47  DressupPathBoundary: 'NoneType' object has no attribute 'VertRapid'
10:22:47  pyException: Traceback (most recent call last):
  File "/tmp/.mount_FC_wklILG0sp/usr/Mod/CAM/Path/Dressup/Boundary.py", line 105, in execute
    obj.Path = pb.execute()
               ^^^^^^^^^^^^
  File "/tmp/.mount_FC_wklILG0sp/usr/Mod/CAM/Path/Dressup/Boundary.py", line 162, in execute
    "G0", {"Z": self.safeHeight, "F": tc.VertRapid.Value}
                                      ^^^^^^^^^^^^
<class 'AttributeError'>: 'NoneType' object has no attribute 'VertRapid'
10:22:47  DressupPathBoundary: 'NoneType' object has no attribute 'VertRapid'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions