solid7
Mechanical
- Jun 7, 2005
- 1,403
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.
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.
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.