List Select Macro (Select hidden sub-objects)

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
HarryvL
Veteran
Posts: 1285
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: List Select Macro (Select hidden sub-objects)

Post by HarryvL »

Thanks Howi, my PPA version of FreeCAD-daily gets automatically installed in the Computer>usr>lib>freecad-daily directory for which I don't have write access (although this is PC to which I only have access). So this is entirely Ubuntu ignorance on my part. I must have set up Ubuntu or PPA incorrectly. I will see if I can change the PPA destination or directory access rights. Harry
HoWil
Veteran
Posts: 1279
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: List Select Macro (Select hidden sub-objects)

Post by HoWil »

HarryvL wrote: Sun Feb 04, 2018 8:39 pm Thanks Howi, my PPA version of FreeCAD-daily gets automatically installed in the Computer>usr>lib>freecad-daily directory for which I don't have write access (although this is PC to which I only have access). So this is entirely Ubuntu ignorance on my part. I must have set up Ubuntu or PPA incorrectly. I will see if I can change the PPA destination or directory access rights. Harry
Hi HarryvL,
Your user-related preferences are stored in your home folder not inside your installation directory!
So, have a look under /home/#your-user-name#/ where "#your-user-name#" is your current user name. There your should find the hidden folder .FreeCAD in which you should install/download the SelectionTools.
BTW.: if you run the two lines posted before, everything should be done automatically.
BR,
HoWil
User avatar
HarryvL
Veteran
Posts: 1285
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: List Select Macro (Select hidden sub-objects)

Post by HarryvL »

Hi HoWil, perfect! This works very well. Thanks for the help. Harry
User avatar
makkemal
Posts: 395
Joined: Wed Apr 29, 2015 12:41 pm
Location: South Africa
Contact:

Re: List Select Macro (Select hidden sub-objects)

Post by makkemal »

Is this tool still working for everyone else ?
This is default code on git repository
I am getting the following error.

Code: Select all

During initialization the error inconsistent use of tabs and spaces in indentation (ListSelect.py, line 145) occurred in C:\Users\MichaelHindley\AppData\Roaming\FreeCAD\Mod\SelectionTools\InitGui.py
Please look into the log file for further information

Code: Select all

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16117 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: dbb4cc6415bac848a294f03b80f65e888d531742
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/SouthAfrica (en_ZA)
User avatar
zacl
Posts: 63
Joined: Wed Jul 31, 2019 1:15 pm

Re: List Select Macro (Select hidden sub-objects)

Post by zacl »

Not working for me either on 0.19 win 10.
You have to replace tabulation by 4 space character at the start of line 145 of ListSelect.py.
But you will have another error after this one.
It may be a problem with the passage from qt4 to qt5 and py2 to py3.
User avatar
zacl
Posts: 63
Joined: Wed Jul 31, 2019 1:15 pm

Re: List Select Macro (Select hidden sub-objects)

Post by zacl »

makkemal wrote: Wed Aug 07, 2019 12:31 pm Is this tool still working for everyone else ?
This is default code on git repository
Someone forked the project to made it working with FC0.19
https://github.com/tomate44/SelectionTools

He corrected 2 bug due to the passage of python 2 to 3.

Maybe there is a bug because the selected object don't become transparent during selection.
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: List Select Macro (Select hidden sub-objects)

Post by Chris_G »

zacl wrote: Fri Aug 09, 2019 5:30 pm Someone forked the project to made it working with FC0.19
https://github.com/tomate44/SelectionTools

He corrected 2 bug due to the passage of python 2 to 3.
Yes, I tried a quick fix this morning. But I've been AFK since then.
It seems to be working ... But I was not a user of this tool before, so I don't know if everything is fixed ?
User avatar
zacl
Posts: 63
Joined: Wed Jul 31, 2019 1:15 pm

Re: List Select Macro (Select hidden sub-objects)

Post by zacl »

Chris_G wrote: Fri Aug 09, 2019 8:28 pm It seems to be working ... But I was not a user of this tool before, so I don't know if everything is fixed ?
Not a previous user either.
But it seems that the code didn't get the value of transparency set in preference menu.

The code below always get 0.

SelectionTools/ListSelect.py
line 213-215

Code: Select all

    pref = App.ParamGet(
        "User parameter:BaseApp/Preferences/Mod/SelectionTools/ListSelect")
    obj.ViewObject.Transparency = pref.GetInt("transparency")
And there is no preview highlight of elements from the selecting list.

The feature is missing according to this discussion :
https://forum.freecadweb.org/viewtopic. ... 19#p326119
HoWil
Veteran
Posts: 1279
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: List Select Macro (Select hidden sub-objects)

Post by HoWil »

realthunder wrote: Ping
Any chance that the selection in 3D you also worked on in depth for asm3 will help here as well? I mean that we possibly do not need external macros any more.
BR,
HoWil
realthunder
Veteran
Posts: 2190
Joined: Tue Jan 03, 2017 10:55 am

Re: List Select Macro (Select hidden sub-objects)

Post by realthunder »

HoWil wrote: Thu Aug 22, 2019 6:18 am Any chance that the selection in 3D you also worked on in depth for asm3 will help here as well? I mean that we possibly do not need external macros any more.
BR,
Yes, it's already in the upstream. Just open the selection view, and click 'Picked object list' to enable it. Double click in the pick list to add the selection, and double click in the selection list to de-select. You can use mouse over any list item to highlight the element without selection.

Image
Try Assembly3 with my custom build of FreeCAD at here.
And if you'd like to show your support, you can donate through patreon, liberapay, or paypal
Post Reply