cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

JAVA Design select()

BobMonat
1-Newbie

JAVA Design select()

I'm trying to figure out the correct usage of the Design class select() method. Whenever I specify in select() a value for conditionList, sortList, or classList, the propertySets iterator hasNext() returns false. Any help as to what I'm doing wrong would be appreciated. I could not find an example of using this method.

Condition [] conditionList = new Condition [1];
conditionList[0] = new SimpleCondition ("type", "==", "DOCUMENT!dwg_sheet");
SortSpec [] sortList = new SortSpec [1];
sortList[0] = new SortSpec ("DOCUMENT!dwg_sheet", true);
String [] classList = new String[1];
classList[0] = new String ("rsdesigner.design.Sheet");
SelectFilter preFilter = null;
SelectFilter postFilter = null;
Iterator propertySets = design.select(conditionList, sortList, classList, preFilter, postFilter);

TIA,


Bob Monat
Jerand Technical Services
www.jerand.com
1-317-875-6087 US Tollfree 1-888-4JERAND (1-888-453-7263)
FAX 1-317-875-6612


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
0 REPLIES 0
Top Tags