Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding fasteners breaks BOM generation #454

Open
nullbuilds opened this issue Nov 9, 2023 · 1 comment
Open

Adding fasteners breaks BOM generation #454

nullbuilds opened this issue Nov 9, 2023 · 1 comment

Comments

@nullbuilds
Copy link

nullbuilds commented Nov 9, 2023

Adding a fastener to an assembly and attempting to generate the BOM will result in the following error:

21:47:57  ASM4> BOM of the Assembly 4 Model
21:47:57  ASM4> BOM following sub-assemblies
21:47:57  Running the Python command 'Asm4_makeBOM' failed:
Traceback (most recent call last):
  File "C:\Users\Charl\AppData\Roaming\FreeCAD\Mod\Assembly4\.\makeBomCmd.py", line 116, in Activated
    self.listParts(self.model)
  File "C:\Users\Charl\AppData\Roaming\FreeCAD\Mod\Assembly4\.\makeBomCmd.py", line 451, in listParts
    self.listParts(subobj, level+1, parent=obj)
  File "C:\Users\Charl\AppData\Roaming\FreeCAD\Mod\Assembly4\.\makeBomCmd.py", line 381, in listParts
    x_count = obj.NumberX

'FeaturePython' object has no attribute 'NumberX'

It does not appear to matter whether the fastener has been attached to something or whether other parts exist in the file. While Assembly4's BOM command fails, the Generate BOM command of the Fasteners workbench does appear to be working correctly.

This was encountered with Assembly4 v0.50.4, Fasteners Workbench 0.4.70, and FreeCAD v0.21.1 (no other workbenches installed).

I've included a minimal example to reproduce the issue: BomTest.zip

@Zolko-123
Copy link
Owner

BoM is currently quite broken. If you have coding skills and time (and an itch to scratch) you are welcome to improve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants