6 Replies Latest reply on Nov 20, 2012 2:12 AM by Andreas.Schaefer

    How to use  CreateObject("ViewDraw.StringList")

    Andreas.Schaefer

      Hi,

       

      I wanted to start copying pages by automation.

      Ther is an example where you can create a SringList needed as parameter for

      viewDrawApp.SchematicSheetDocuments.CopyToClipboard

       

      So I would like to ask why last line in

       

      Set viewDrawApp = Application

      Set sheetsCollection = Application.SchematicSheetDocuments()

       

      set docObject = sheetsCollection.Open("flat", "001")

       

      MsgBox "Page Open"

       

      set pathFrom = CreateObject("ViewDraw.StringList")

       

      It returns an error ActiveX-Component can not create an Object: "ViewDrwa.StringList".

       

      Also I would like to know, how the string list should look like.

       

      Kind regards,

      Andreas