List Select Macro (Select hidden sub-objects)
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: List Select Macro (Select hidden sub-objects)
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
Re: List Select Macro (Select hidden sub-objects)
Hi HarryvL,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
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
Re: List Select Macro (Select hidden sub-objects)
Hi HoWil, perfect! This works very well. Thanks for the help. Harry
Re: List Select Macro (Select hidden sub-objects)
Is this tool still working for everyone else ?
This is default code on git repository
I am getting the following error.
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)
Re: List Select Macro (Select hidden sub-objects)
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.
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.
Re: List Select Macro (Select hidden sub-objects)
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.
Re: List Select Macro (Select hidden sub-objects)
Yes, I tried a quick fix this morning. But I've been AFK since then.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.
It seems to be working ... But I was not a user of this tool before, so I don't know if everything is fixed ?
Re: List Select Macro (Select hidden sub-objects)
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")
The feature is missing according to this discussion :
https://forum.freecadweb.org/viewtopic. ... 19#p326119
Re: List Select Macro (Select hidden sub-objects)
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.realthunder wrote: Ping
BR,
HoWil
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: List Select Macro (Select hidden sub-objects)
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.