Call AddHLine() from Python script?

Optuma Forums Optuma Scripting Call AddHLine() from Python script?

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #69157
    David
    • Topics: 14
    • Replies: 21
    • Posts: 35

    Hi all,

    Simple question – is it possible to use something like Pascal’s Tool.AddHLine() function within a Python script?

    Some sample code to help clarify… Here I’m trying to call AddHLine() from within Python, and I get an error back ‘module Tool has no attribute AddHLine()’ which is clear enough. Is there another name for the ‘add horizontal line’ function within Python, or is it just not possible to draw a horizontal line like this on a chart from within Python?

    Note: for this very simple example, I’m aware that I could just use something like

    but the functionality I’m trying to implement is considerably more complex than that. If there’s no AddHLine() equivalent in Python, then I’ll switch over to Pascal instead.

    Thanks in advance

    David Mitchell

    #69349
    David
    • Topics: 14
    • Replies: 21
    • Posts: 35

    Just following up by saying I’ve now implemented this functionality inside Pascal. No need for a response from the Optuma team

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest