Assembly4 - Tools Bar - Delete Variable

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Bernard19
Posts: 887
Joined: Sun Feb 20, 2022 7:16 pm

Assembly4 - Tools Bar - Delete Variable

Post by Bernard19 »

Hi,
I think there is a small problem.
I can no longer delete variables.
The "Delete Variable" icon is always greyed out despite having an active variable. This function was present in the previous version.
How can I delete a variable now?

Even if I still grope, I find that ASM4 is very powerful. Really a nice tool.
Cordially

Code: Select all

OS: Windows 11 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.32985 (Git)
Build type: Release
Branch: master
Hash: 5cd377f931312ede305e4c764ba2028b20eaacfd
Python 3.10.10, Qt 5.15.8, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: French/France (fr_FR)
Installed mods: 
  * A2plus 0.4.60k
  * Assembly4 0.50.1
  * CurvedShapes 1.0.4
  * Curves 0.6.8
  * ExplodedAssembly
  * fasteners 0.4.56
  * fcgear 1.0.0
  * lattice2 1.0.0
  * Pyramids-and-Polyhedrons
  * QuickMeasure 2022.10.28
  * sheetmetal 0.2.63
Attachments
Capture d'écran 2023-05-02 082158.png
Capture d'écran 2023-05-02 082158.png (15.1 KiB) Viewed 1003 times
User avatar
Jolbas
Posts: 327
Joined: Sat Mar 26, 2022 7:48 am
Location: Sweden

Re: Assembly4 - Tools Bar - Delete Variable

Post by Jolbas »

I don't know why it's disabled but a workaround is to right click in Property view and select "Show all". Then right click on the name of the property you want to remove and choose "Remove property"
User avatar
Bernard19
Posts: 887
Joined: Sun Feb 20, 2022 7:16 pm

Re: Assembly4 - Tools Bar - Delete Variable

Post by Bernard19 »

Great bypass service.
Cordially
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Assembly4 - Tools Bar - Delete Variable

Post by onekk »

Apparently something is changed in recent versions, I have some python code that leverage Asm4libs and it is not working anymore, because something in Links has changed and the method that create Variables has changed.

Sadly comments on code are not very clear, and probably for compatibility reason some old code is retained making things a bit difficult to guess, but overall quality is good, so after having read around the way is not too difficult to guess.

I've copied and pasted code from asm4 commands, if these methods were placed in Asm4 libs and invoked from commands, it will be easy to script Asm4.

Regards

Carlo D.

Post amended after some code in deep study.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly4 - Tools Bar - Delete Variable

Post by Zolko »

Bernard19 wrote: Tue May 02, 2023 6:28 am The "Delete Variable" icon is always greyed out despite having an active variable. This function was present in the previous version.
thank-you for your report. It's fixed now in the development branch, will be available in the next release
try the Assembly4 workbench for FreCAD — tutorials here and here
Post Reply