I'm trying to create my own sort of BOM, so it's all about get component data from each sheet. I'm writing on C#, have seen lots of similar vb scripts, but in my code I have problem with schematic sheets. Here's part of my code:
var name = app.GetProjectData().GetiCDBDesignRootBlock(app.GetActiveDesign());
var count = app.SchematicSheetDocuments().GetAvailableSheets(name).GetCount();
Below you can see project structure, it contains 12 sheets total.
"name" variable is "GPS_IRIG_B_TOP", but "count" recieve only 1.
What am I doing wrong?