Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Jun 7, 2005
1,403
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.

 
Replies continue below

Recommended for you

Thank you for the reply. I understand.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top