Hi Paul, back a little bit ago I added a couple of script methods for getting sub objects. It should work if you have the latest patch.
I attached an updated moi.idl here.
There are 2 ways that will work - for any object you can now call the new getSubObjects() method on the object which returns an object list of all sub-objects underneath the object. But one tricky thing is this includes curve segments which are sub-objects of a curve as well, you should probably skip the segments since most things don't currently expect a segment sub-object to be selected, things expect just the parent curve (edge curve or standalone curve) to have the selection instead.
Another thing you can use is on a brep object, there are getEdges() and getFaces() methods that will let you get those as object lists. This one may be easier since it won't include segments.
- Michael
|