[A2plus] Highlight the selected constraint

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

Re: [A2plus] Highlight the selected constraint

Post by dan-miel »

kemes wrote: Fri Mar 11, 2022 7:26 am If the A2+More -addon is not being developed any more would be interesting to see that this functionality, the Constraint Viewer, would be implemented in the main A2+ -project. I might be able to carry out this myself
Forgot to attach workshop.
Please see next post.
Dan
dan-miel
Posts: 391
Joined: Thu Sep 13, 2018 12:29 am
Location: Spokane WA. USA

Re: [A2plus] Highlight the selected constraint

Post by dan-miel »

kemes wrote: Fri Mar 11, 2022 7:26 am If the A2+More -addon is not being developed any more would be interesting to see that this functionality, the Constraint Viewer, would be implemented in the main A2+ -project. I might be able to carry out this myself
Kemes:
I have removed most of the A2+More features and reduced it to the viewer.

Thanks for letting me know the workshop started. I updated the viewer program and have attached it. I believe it will work better. It now has only two icons.
To use:
Remove the a2plusmore directory from your Mod directory if you have it.
Unzip A2pConstraintViewer v.2.zip.
Move it to your Mod folder. You must also have A2plus installed.
Restart FreeCAD.
Dan

A list of short help videos.

01 when you first open Constraints. https://youtu.be/9L8u2-xBT1Y
02 How to view constraints associated with a part. https://youtu.be/jA9JBXVcd34
03 Highlighted parts not moved error. https://youtu.be/v5dIPjdV-y8
04 Find small constraint with a label. https://youtu.be/yXG1muuJtHk
05 Update constraints one at a time. https://youtu.be/_JWpEvC0AqQ
06 Move a constraint’s attachment to a new surface. https://youtu.be/XtKRF33v5EU
07 How to view constraints in tree. https://youtu.be/Y1-iExD65fs
08 Modifying parts. [url] https://youtu.be/ng9QSUHW09w [url]
08 Video is about 2 minutes but it shows how to use the second button when modifying parts.

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United States (en_US)
Attachments
A2pConstraintViewer ver2.zip
(933.86 KiB) Downloaded 28 times
User avatar
kemes
Posts: 63
Joined: Wed Mar 02, 2022 8:05 am

Re: [A2plus] Highlight the selected constraint

Post by kemes »

Wow! I'm greatful for the work you have done! Thank you dan-miel 😊 I'll test this soon.
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [A2plus] Highlight the selected constraint

Post by uwestoehr »

kemes wrote: Mon Mar 07, 2022 6:57 am How? I could not find the info in the wiki.
It it the magnifying glass icon: https://wiki.freecadweb.org/A2plus_Work ... ping_track

- select a constraint in the tree view and click the icon
User avatar
kemes
Posts: 63
Joined: Wed Mar 02, 2022 8:05 am

Re: [A2plus] Highlight the selected constraint

Post by kemes »

uwestoehr wrote: Sun Mar 13, 2022 1:46 pm
kemes wrote: Mon Mar 07, 2022 6:57 am How? I could not find the info in the wiki.
It it the magnifying glass icon: https://wiki.freecadweb.org/A2plus_Work ... ping_track

- select a constraint in the tree view and click the icon
Apologies. This was exactly what I was looking for :oops: :oops: :oops: Especially sorry dan-miel for the time you have put into this. BUT the constraint viewer can luckily do more than highlight the elements ;)

Is there a way to trigger element highlighting when a constraint is clicked in the tree?
dan-miel
Posts: 391
Joined: Thu Sep 13, 2018 12:29 am
Location: Spokane WA. USA

Re: [A2plus] Highlight the selected constraint

Post by dan-miel »

kemes wrote: Sun Mar 13, 2022 9:34 pm Especially sorry dan-miel for the time you have put into this.
kemes:
No worries, I have been wanting to do this for a year but always seem busy.
kemes wrote: Sun Mar 13, 2022 9:34 pm Is there a way to trigger element highlighting when a constraint is clicked in the tree?
I'm not sure what you mean by trigger element highlighting.
uwestoehr wrote: Sun Mar 13, 2022 1:46 pm select a constraint in the tree view and click the icon
Uwestorhr:
Perhaps I should name this tool a diagnostic tool because with the magnifying glass icon you can only view one mate.
With this tool you can import multiple constraints from a part or tree.
Once imported you can view the constraint or one attachment element at a time, suppress or un-suppress the constraints and solve with A2plus until you find the problem ones.
To find a small, hard-to-find constraint, use the “Find by Label” button. This attaches a label to the constraint leg(element) in the viewer (see picture). To find a constraint in the tree, select the constraint name in the tree and click the ‘Find in tree’ button, then scroll until you see the constraint highlighted in bright yellow (see picture).
If the constraint is connected to the wrong surface or element you can change that element to another by using the “Attach to” button.

The other button is for updating edited parts. After editing a part and using the update button in A2plus, you get a message “Cannot solve” but it doesn’t give much information on how to fix the problem. These problems are normally caused by the name of the attachment element being changed in the part when you edited it. When this program is ran it tries to solve the constraint using the name. If this program cannot solve the constraint, it tries to find the correct element by matching the size. If it is not successful it shows the table and highlights, in the table, the non-found surfaces in yellow at which point you can change the missing surface to the intended surface by using the “Move to” button.

These functions has saved me hours of diagnostic time, I hope someone else finds it useful also.
Dan.
Attachments
Find constraint with label.JPG
Find constraint with label.JPG (110.97 KiB) Viewed 1002 times
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [A2plus] Highlight the selected constraint

Post by uwestoehr »

dan-miel wrote: Mon Mar 14, 2022 1:27 am These functions has saved me hours of diagnostic time, I hope someone else finds it useful also.
Yes it is cool. but why not either making a pull request for A2plus or offering it as standalone addon?
User avatar
kemes
Posts: 63
Joined: Wed Mar 02, 2022 8:05 am

Re: [A2plus] Highlight the selected constraint

Post by kemes »

dan-miel wrote: Mon Mar 14, 2022 1:27 am
kemes wrote: Sun Mar 13, 2022 9:34 pm Is there a way to trigger element highlighting when a constraint is clicked in the tree?
I'm not sure what you mean by trigger element highlighting.
I would like to see the constraint elements highlighted right after I click the constraint in the tree (not only after clicking the magnifying glass icon).
dan-miel
Posts: 391
Joined: Thu Sep 13, 2018 12:29 am
Location: Spokane WA. USA

Re: [A2plus] Highlight the selected constraint

Post by dan-miel »

kemes wrote: Mon Mar 14, 2022 8:45 pm I would like to see the constraint elements highlighted right after I click the constraint in the tree (not only after clicking the magnifying glass icon).
Hi kemes
I don't see a way to do it the way it is. When I click the constrains, sometimes the edit box opens and sometimes not. I suspect that is because of a timer Klaus has running in the background. The other option might have been to click the magnifying tool to turn the timer off then click the constraints, this may have allowed you to check several constraints but then you would need to turn the timer back on.
This is just guessing.
Dan
Post Reply