AnsweredAssumed Answered

How to open the first sheet of root block when no sheet was opened initially

Question asked by andreas.rehn on Sep 10, 2014
Latest reply on Sep 12, 2014 by Patrick.Cashman



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);

  DxDesignerApp.SchematicSheetDocuments().Open(rootBlockName, firstRootBlockSheetName);


Does anybody know how to open/load a schematic by automation in order to get the SchematicSheetDocuments collection?