Search features

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
Juyam
Posts: 24
Joined: Tue Sep 02, 2014 5:32 am

Search features

Post by Juyam »

Hello ~
Examples of such attachments: Find feature (bend3)
There are groups within the feature classification, if they know where the feature name, in addition to each of a group looking for ways to open the way to the outside there is no other search methods?

Thank you
Juyam


OS: Ubuntu 14.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.3980 (Git)
Branch: master
Hash: a81a307346eff36c39f72493ffe8cd231080edf6
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.0
Attachments
TT1.fcstd
(81.57 KiB) Downloaded 91 times
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Search features

Post by bejant »

Greetings Juyam, do you want to search your FreeCAD model tor the item "bend3"? If so I don't know of a way to do it through the GUI, but somebody else may know of a way to do a search through the Python console.

The ability to do a search for item or Feature may be worth a feature request on the tracker; people seem to be making more complicated models as time goes on.
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Search features

Post by yorik »

Actually I've been thinking too to add a kind of search feature... Still not sure how to do that well. My original idea was like having a search box on top of the tree view, but how to display the results in an efficient way, in case your search gives several results?

Anyway, yes it would be a good feature request.

Selecting objects with a certain search pattern in their label from python is very simple:

Code: Select all

Gui.Selection.clearSelection()
searchpattern = "Cube"
for obj in App.ActiveDocument.Objects():
    if searchpattern in obj.Label:
        Gui.Selection.addSelection(obj)
PascalB
Posts: 17
Joined: Tue Apr 01, 2014 10:11 am

Re: Search features

Post by PascalB »

If I may suggest a behavior for the multiple result of a search, it could be to select multiple items as the result get from the "Box Selection" (Edit menu).
Obviously, it would be nice :
- to expand automatically the label tree if the item is "hidden" in a sub-label
- to have the wildcard (*) capability in such a search, and, perhaps, the "advanced search" (+ / -).
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Search features

Post by yorik »

Hm yes, actually using the Selection window might work very well, since that window can hold several items. That window might actually get enhanced a bit, for example to display labels and allow to select one of the items.
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Search features

Post by bejant »

yorik wrote:Anyway, yes it would be a good feature request.
Reported as issue #1737
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Search features

Post by bejant »

Juyam wrote:Find feature (bend3)
Juyam, have a look here:
viewtopic.php?f=9&t=7661

It will be available in the PPA soon.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Search features

Post by NormandC »

New packages were built 40 minutes ago. Chances are this new feature is already available.

https://launchpad.net/~freecad-maintain ... /+packages
Juyam
Posts: 24
Joined: Tue Sep 02, 2014 5:32 am

Re: Search features

Post by Juyam »

bejant wrote:
Juyam wrote:Find feature (bend3)
Juyam, have a look here:
viewtopic.php?f=9&t=7661

It will be available in the PPA soon.

Great features. Thanks!
Post Reply