Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all articles
Browse latest Browse all 78596

problem in Getting Child Count And Child Reference of a Group [CS3/WIN]

$
0
0
Hi All,<br /><br />I have Created a group For Some pageItems using kGroupCmdBoss<br /><br />InterfacePtr<ICommand>groupItemsCmd(CmdUtils::CreateCommand(kGroupCmdBoss));<br />InterfacePtr<IGroupCmdData> groupCmdData ( groupItemsCmd, UseDefaultIID());<br />UIDList*list=new UIDList(grpList);//grplist contains UID of all items to be grouped<br />groupCmdData->Set(list);<br />ErrorCode status = CmdUtils::ProcessCommand(groupItemsCmd);<br /><br />Till here every thing is working fine.<br />But when i want to traverse through all group item using IHierarchy every time its giving child count as one.<br /><br />InterfacePtr<IHierarchy> child( groupRef,  UseDefaultIID() ); <br /><br />int32 grpchildCount = child->GetChildCount(); //always 1<br /><br />I am not getting why its  always return child count as 1. But the same code is working fine when i am creating group using click on Group In UI. <br /><br />Can any one tell me How Top Iterate through group in above case.???<br /><br />I think when i am executing Group command some document hierarchy is changing becoz of that i am getting issue??<br />any idea??

Viewing all articles
Browse latest Browse all 78596

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>