ExplodedAssembly icon indicating copy to clipboard operation
ExplodedAssembly copied to clipboard

Explode Assembly seems to be broken?

Open 0x007E opened this issue 1 year ago • 3 comments

Currently for me it is not possible to explode drawings with Freecad 0.21.1 (Win). If i use an older version of ExplodeAssembly there are no problems. The following error message appears:

09:35:08  Exploded Assembly workbench loaded
09:35:10  Running the Python command 'GoToEnd' failed:
Traceback (most recent call last):
  File "C:\Users\ragae\AppData\Roaming\FreeCAD\Mod\ExplodedAssembly\EAInit.py", line 315, in Activated
    ea.goToEnd()
  File "C:\Users\ragae\AppData\Roaming\FreeCAD\Mod\ExplodedAssembly\ExplodedAssembly.py", line 450, in goToEnd
    obj_base = traj.dir_vectors[n]*inc_D

can't multiply sequence by non-int of type 'float'

Maybe it is due the setup of AnimationStepTime? image

I didn´t test if the problems are comming from there but if the code was changed to only accept int it would be necessary to change all my project. I haven´t checked the code of the last commit but possible this is a #bug?

0x007E avatar Jan 19 '24 08:01 0x007E

https://github.com/JMG1/ExplodedAssembly/blame/master/ExplodedAssembly.py#L450 At least ther was sonething chabged exactky in this line...

s-light avatar Feb 15 '24 23:02 s-light

I am not able to reproduce the error, could you post a file with the issue at the FreeCAD forum?

JMG1 avatar Feb 24 '24 12:02 JMG1

@JMG1 -> You can use the mechanical.FCStd template from this repository. Message is still the same:

09:27:33  Exploded Assembly workbench loaded
09:27:37  Running the Python command 'GoToEnd' failed:
Traceback (most recent call last):
  File "C:\Users\***\AppData\Roaming\FreeCAD\Mod\ExplodedAssembly\EAInit.py", line 315, in Activated
    ea.goToEnd()
  File "C:\Users\***\AppData\Roaming\FreeCAD\Mod\ExplodedAssembly\ExplodedAssembly.py", line 450, in goToEnd
    obj_base = traj.dir_vectors[n]*inc_D

can't multiply sequence by non-int of type 'float'

FreeCAD Version:

[code]
OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.21.1.33668 +26 (Git)
Build type: Release
Branch: (HEAD detached at 0.21.1)
Hash: f6708547a9bb3f71a4aaade12109f511a72c207c
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: German/Austria (de_AT)
Installed mods: 
  * ExplodedAssembly
  * fasteners 0.5.12
  * kicadStepUpMod 10.23.2
  * ThreadProfile 1.89.0
[/code]

Installed version of ExplodeAssembly

Unknown -> Installed. This is the latest version available for branch master.

With another computer, where the same version of FreeCAD is installed but an older version of ExplodeAssembly it is no problem and everything is working as expected.

0x007E avatar Feb 29 '24 08:02 0x007E