Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

EKL - Query

Status
Not open for further replies.

solid7

Mechanical
Joined
Jun 7, 2005
Messages
1,403
Location
US
I've found that the Query function is a lot deeper than the help documentation lets on.

There is one particular case that isn't quite working, and I cannot figure out why. I have a joined curve that is comprised of 15 line segments, and 2 circles. I want to query the list for lines, and return them to a second list.

Code:
ioList = disassemble( boundary( ioSurface ) , True )
ioLineList = ioList ->Query( "Curve" , "x.IsSupporting( \"Line\" ) == True" )  

Message( "# elements in ioList : # elements in ioLineList" , ioList ->Size() , ioLineList ->Size() )

For some reason this isn't working as expected, but it's also not erroring out. (it is syntaxically not incorrect) I included the message out, just to show how I'm validating my results. The first list size is always 17, the second is always 0.

Maybe it's something really simple that I'm just not seeing.

 
Thank you for the reply. I understand.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top