Welcome to Golden Software Support

GridData3 error

Comments

3 comments

  • Avatar
    Drew Dudley

    Hi Arthur,

    Thank you for posting your issue. From the error message you posted, I cannot tell what part is out of range for your GridData3 snippet. Can you run this inside of Scripter to see what the error message says?

    Since we only support automation inside of the Scripter environment, it's a little hard to tell where the error is coming from. I was able to run a very similar GridData3 operation inside of Scripter using my own data without error. My snippet looks like this:

    The HTML Clipboard

    The HTML Clipboard
    SurferApp.GridData3(datafile:=DataFile, xCol:=1, yCol:=2, zCol:=3, NumCols:=5000, NumRows:=5000, xMin:=0, xMax:=7, 
    yMin:=0, yMax:=7, Algorithm:=SrfGridAlgorithm.srfKriging, ShowReport:=False, SearchEnable:=True, SearchNumSectors:=4,
    SearchRad1:=2, SearchRad2:=3, SearchAngle:=Kat, SearchMinData:=1, KrigType:=1, outgrid:=OutGrid2)

    I do not see much difference between your snippet and mine, except for using values for some of the parameters. I did not know what you were using, so I needed to change mine to get it to execute. 

    Again, please test in Scripter and let me know if you see an error message. If so, what does the message say?

    Thanks,

    Drew

     

    0
    Comment actions Permalink
  • Avatar
    Artur Szamalek
    Hi Drew,
     
    Thank you very much for your response.
     
    What's a pity, that you support Surfer Automation only inside Scripter.
    Our Company decided to buy your software after testing automation inside of Microstation environment. Up to now everything have worked perfectly. And The Surfer put our job in a high level.
     
    I've tested my automation in Excel program and is the same problem, which I described in my first post. For the VBA  (where The Surfer is referenced) is visible only GridData and GridData2 methods. The GridData3 causes compilation error.
     
    If it is not a problem, maybe yours basic programmers could have any suggestions?
     
    Thanks in advance.
     
    Arthur
    0
    Comment actions Permalink
  • Avatar
    Drew Dudley

    Hello Arthur,

    Thanks for posting your response. Perhaps it's possible that you don't have the right Type Library referenced in Excel or the Microstation environment? I believe you will need to reference the Surfer 13 Type Library (1.4). Referencing anything prior to this will not work as GridData3 was introduced with Surfer 13. 

    Thanks,

    Drew

     

    0
    Comment actions Permalink

Please sign in to leave a comment.