OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Jim Short on March 08, 2009, 02:38:21 PM

Title: dcl_tree Get child keys of a parent node
Post by: Jim Short on March 08, 2009, 02:38:21 PM
Looking at ways of getting a list of child keys from a parent key.

Is there more than these to work with?

dcl_Tree_GetFirstChildItem
dcl_Tree_GetNextSiblingItem

I can get there by building nested list of entire tree.

Any suggestions?
Title: Re: dcl_tree Get child keys of a parent node
Post by: Fred Tomke on March 08, 2009, 03:11:22 PM
Hello Jim, as far as I know there is still no direct method to list all the childs from a parent. But I like this idea, too, and maybe we could add this to the feature list on sourceforge (https://sourceforge.net/tracker2/?group_id=187950&atid=923366). Would you do this then?

Fred
Title: Re: dcl_tree Get child keys of a parent node
Post by: Jim Short on March 08, 2009, 04:56:48 PM
Done.

Thanks Fred!

jim
Title: Re: dcl_tree Get child keys of a parent node
Post by: Jim Short on March 17, 2009, 05:30:30 PM
I posted a recursive Lisp routine that handles this in the AutoLISP category.
Good for small trees.
Jim