• 111 views | 3 messages Discussion: LEAP
    Topic: API - Print Scenario NotesSubscribe | Previous | Next
  • Tomás Mac Uidhir 1/13/2021

    Hi Guys,

    Wondering if there is a way to print the NOTES associated with all scenarios in an area...something like:

    dim L
    Set L = createobject("LEAP.LEAPApplication")
    dim s
    For s = 3 To L.Scenarios.Count
    print L.Scenarios(s).Name "with Name being replaced with Notes or equivalent?"
    x = x + 1
    Next

    Might save some time in exporting/ updating notes frequently.
    All the best
    Tomas

  • Charlie Heaps 1/14/2021
      Best Response

    Hi Tomas - I'm afraid this is not yet possible as the scenario notes are not (yet) integrated into LEAP's API.

    I agree though that this is a good idea. One minor wrinkle is that the Notes are not just plain text, they are in rich text format, so can include formatting, tables, etc. However, I think there are methods to at least return a plain text approximation of the notes. I will try to add that in to next release of LEAP. Please feel free to remind me periodically!

    Charlie

  • Tomás Mac Uidhir 1/14/2021
      Best Response

    Hey Charlie,

    Great, I appreciate the response. I'll be sure to remind you every now and again :)

    All the best
    Tomas