I'm trying to open the first sheet of the root block in DxDesigner. DxDesigner and the project are opened by automation. Once this is done no schematic or sheet is open.
When I try now to access the collection schematicSheetDocuments() it fails due it is null.
I use this code:
string rootBlockName = DxDesignerApp.GetProjectData().GetiCDBDesignRootBlock(DxDesignerApp.GetActiveDesign());
string firstRootBlockSheetName = DxDesignerApp.SchematicSheetDocuments().GetAvailableSheets(rootBlockName).GetItem(0);
Does anybody know how to open/load a schematic by automation in order to get the SchematicSheetDocuments collection?