This A2plus Macro finds conflicting constraints.

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
dan-miel
Posts: 391
Joined: Thu Sep 13, 2018 12:29 am
Location: Spokane WA. USA

This A2plus Macro finds conflicting constraints.

Post by dan-miel »

I modified this “a2p_solversystem.py” file to find a set of broken mates when using this macro. Start the macro. When you see kbwbe’s constraint error box pop up, close it. You will need to do this 2-3 times. The set of conflicting mates will show in the two textboxes.

I have attached the “a2p_solversystem.py” file that I modified, A2plus V0,4,46c. . It is for the Macro. If you have the latest versions of A2plus loaded then simply rename your solversystem file to a2p_solversystem.pybak and copy this one in its place. Otherwise modify your file to include the following. Of course the line numbers will be different.
Kbwbe: I think the changes for this and to report the conflicting constraint that I did this morning would be good changes. If you want me to try making changes on the git website I can try but you know if these changes would mess something up.

Dan Miel
Attachments
solversystem for conflict finder.docx
(15.02 KiB) Downloaded 28 times
a2p_solversystem.py
(30.32 KiB) Downloaded 22 times
Find set of conflicting constraints.FCMacro
(6.6 KiB) Downloaded 23 times
Post Reply