• 224 views | 3 messages Discussion: LEAP
    Topic: Cannot create LEAP object in Script Subscribe | Previous | Next
  • Mostafa Fard 10/19/2018

    Hi,
    I am using JScript to run LEAP and do some calculation. I did not use it for a while. It was working before, but now I cannot create the LEAP object in the script (It is working for WEAP).
    When I create new object of WEAP, it works. But, the same code for LEAP does not work and I get the following error (attached error):
    var WEAP = new ActiveXObject("WEAP.WEAPApplication"); // It works very well
    var LEAP = new ActiveXObject("LEAP.LEAPApplication"); // It doeas not work



    related link when it was working:
    https://www.energycommunity.org/default.asp?action=thread&tid=3936&fid=22

  • Taylor Binnington 10/30/2018
      Best Response

    Hi Mostafa -

    Which version of LEAP were you last using when this worked, and have you updated your version recently? Please also let us know whether you're using the 32 or 64-bit version of LEAP.

    Thanks,
    Taylor

  • Mostafa Fard 10/30/2018
      Best Response

    Hi Taylor,
    Actually, I do not remember the version of the previous LEAP (which it was working correctly). I usually use the latest version, and I was using that code around 8 months ago (if it helps).
    Now, I am using LEAP 2018.0.1.18 (64-Bit) on Windows-10 (64-Bit)