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

Assembly: Problem with CopyOnChange links #14056

Open
2 tasks done
wifasoi opened this issue May 16, 2024 · 2 comments
Open
2 tasks done

Assembly: Problem with CopyOnChange links #14056

wifasoi opened this issue May 16, 2024 · 2 comments
Labels
Bug This issue or PR is related to a bug WB Assembly Related to the Integrated Assembly Workbench

Comments

@wifasoi
Copy link

wifasoi commented May 16, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

I noticed this bug wen creating some assembly with generic extruded aluminum profiles (implemented with the "CopyOnChange" feature of App::Link). Wen you modify the copyOnwrite parameter, the solid will shift, and if you try to solve the constraint, the solid will shift more, and if you try to modify the parameter, will shift again, in a random rotation and magnitude.

A possible way to reproduce the bug:

  • Creating an assembly;
  • Add a part as a link, and ground it;
  • Add another part as a link (that has a CopyOnChange parameter that modifies the solid), and set Link On Copy on "Enabled"
  • make a "Fixed joint" constraint between the two object
  • Change the CopyOnChange parameter
    (The solid now swifts randomly)
  • Press "Solve Assembly"
    (The solid will shift more each time is pressed)

image
image
image

Full version info

OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.37302 (Git)
Build type: Release
Branch: main
Hash: 0e24e121eb3e5708c380596e0a9fd583befac977
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: English/Europe (en_150)
Installed mods: 
  * Assembly4 0.50.12
  * Gridfinity 0.4.0
  * kicadStepUpMod 11.1.0
  * LCInterlocking
  * sheetmetal 0.4.11

Subproject(s) affected?

Assembly

Anything else?

I tried with different
No error log are generated in the console, But i created an example that triggers the strange behavior.
testbug.zip

You just need to press "Z" (Solve Assembly) to admire the majestic glider going places :D

Code of Conduct

  • I agree to follow this project's Code of Conduct
@maxwxyz
Copy link
Collaborator

maxwxyz commented May 16, 2024

@PaddleStroke FYI

@maxwxyz maxwxyz added Bug This issue or PR is related to a bug WB Assembly Related to the Integrated Assembly Workbench labels May 16, 2024
@PaddleStroke
Copy link
Contributor

Ah yes I have not taken this into account so it is undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This issue or PR is related to a bug WB Assembly Related to the Integrated Assembly Workbench
Projects
Development

No branches or pull requests

3 participants