View Full Version : Way to search across multiple classes?
Steve
11-05-2003, 06:51 AM
Let's say I want to search for a drawing, but I don't know if it's an ME10 (me_drawing class) or an Annotation (sd_drawing class) drawing.
Rather than searching twice, is there a way to search across multiple classes?
Steve
Steve
11-05-2003, 06:55 AM
This is in Work Manager Desktop.
Steve
MikeBoswell
11-05-2003, 07:05 AM
extra -> admin
query -> show
click the button next to any of the predefined queries.
then pick the classes you want to search and fill in any attributes.
I know this works w/ Design Data Manager not sure of the diff.
Steve
11-05-2003, 01:12 PM
That sounds like the "classic" interface, not the desktop interface, correct?
I'd like a solution from directly within the desktop interface, instead of having to go into the classic interface, if possible.
Steve
alexniccoli
11-06-2003, 12:23 AM
Originally posted by Steve
I'd like a solution from directly within the desktop interface, instead of having to go into the classic interface, if possible.
Steve
There is no a predefined solution, but with some macro programming you can accomplish this task.
For instance we developed this funcionality for a lot of our customers which needed an Interclass Search for Parts(some of them have more than 100 classes).
We introduced a new button in the desktop interface wich opens a window with common attributes,the user introduce query restrictions and the the output is sent to the Lister as usual.
Alessando Niccoli
Marco Coli
dszostak
11-10-2003, 07:57 AM
The Model Manager and Drawing Manager Search UI's can handle searches across a group of related classes, as described above. All Drawing classes can be grouped, all Model classes can be grouped, all Part classes can be grouped.
Steve
11-10-2003, 02:24 PM
Cool...another reason to migrate to MM.
Steve
ChrisE
12-23-2003, 08:28 AM
Originally posted by Steve
Cool...another reason to migrate to MM.
Steve
Hi Steve,
before you turn onto that painful road :D, you might want to try this approach:
Define a Query, add the two classes in question to the query, add the attributes you are interested in to the query, and then set the query as the default query for your classes.
See examples in the files:
..../WorkManager/desktop/startup/democust.m
or ..../WorkManager/desktop/startup/std_cust.m,
and look for keywords like
QUERY_CREATE
QUERY_ADD_CLASS
QUERY_ADD_COLUMN
and
Awmc_ui_set_query_layout
Simple example:
QUERY_CREATE "my_drawings"
QUERY_ADD_CLASS "my_drawings"
"me_drawings" "sd_drawings" END
QUERY_ADD_COLUMN "my_drawings" "NAME" "VERSION" "SHEET_NO" "DESCRIPTION" "STATE" .... END
Awmc_ui_set_query_layout "me_drawings" "my_drawings"
Awmc_ui_set_query_layout "sd_drawings" "my_drawings"
Good luck!
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.