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

Mirror ASM4 object --> configuration cannot be saved #474

Open
zisoft opened this issue Mar 10, 2024 · 0 comments
Open

Mirror ASM4 object --> configuration cannot be saved #474

zisoft opened this issue Mar 10, 2024 · 0 comments

Comments

@zisoft
Copy link
Contributor

zisoft commented Mar 10, 2024

I use the ASM4 mirror command quite often, as well as configurations to create exploded views of my assemblies.

Now I ran into a problem when the mirrored object itself is a subassambly (another ASM4 object). When I try to save a configuration an error is thrown:

Traceback (most recent call last):
  File "/Users/mario/Library/Application Support/FreeCAD/Mod/Assembly4/./configurationEngine.py", line 324, in onOK
    SaveConfiguration( confName, confDescr )
  File "/Users/mario/Library/Application Support/FreeCAD/Mod/Assembly4/./configurationEngine.py", line 419, in SaveConfiguration
    SaveSubObjects(conf, assy)            
  File "/Users/mario/Library/Application Support/FreeCAD/Mod/Assembly4/./configurationEngine.py", line 428, in SaveSubObjects
    SaveObject(conf, obj)
  File "/Users/mario/Library/Application Support/FreeCAD/Mod/Assembly4/./configurationEngine.py", line 467, in SaveObject
    offset = obj.AttachmentOffset
AttributeError: 'FeaturePython' object has no attribute 'AttachmentOffset'

It works if I give the mirror an attachment offset (just by clicking "Edit placement of a part").

I could fix it by inserting

Asm4.makeAsmProperties(obj)

at line 212 in file makeArrayCmd.py. Now the mirror automatically gets the AttachmentOffset property, but I'm not sure if this would be the correct solution?

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

1 participant