DataFile.childReferences.count not matching number of 'Children' in data panel

DataFile.childReferences.count not matching number of 'Children' in data panel

carloquinonez
Advocate Advocate
356 Views
1 Reply
Message 1 of 2

DataFile.childReferences.count not matching number of 'Children' in data panel

carloquinonez
Advocate
Advocate

I'm trying to write a script that recurses through a design (including children) to count the total number of features in the timeline. However, the childrenReferences from the API gives a different number than data panel. In my case, the data panel shows 11 references, but the API says there are only 4 children. Furthermore, the API is returning to a child reference to a design that isn't even a child of my design!

 

Regards,

Carlo


-CQ
0 Likes
357 Views
1 Reply
Reply (1)
Message 2 of 2

carloquinonez
Advocate
Advocate

So this problem fixed itself when I exported the linked design, and reimported it. When I reran my script on the freshly imported data, all of the childReferences were accurate.


-CQ
0 Likes