script to draw curve from a file

Atul Hande_22365
Atul Hande_22365 Altair Community Member
edited January 2021 in Community Q&A

Hello All,

I have a test data attached in a file, i can plot it in hypergaph by manually selecting the file/component/request etc...

I want to do it via a tcl script, i have done it until adding a curve and adding the file information to the vectors but did not succeed in displaying the curve in the window.

 

can you help me by creating a curve from the attached file using a tcl script(assuming the file is saved as a variable )

 

Answers

  • Adriano Koga_20259
    Adriano Koga_20259 New Altair Community Member
    edited January 2021

    Have you tried using the commands 'Draw'?

     

    p${PageNum}w${WindowNum}_cv1_x SetType "file"
    p${PageNum}w${WindowNum}_cv1_y SetType "file"
                               
    p${PageNum}w${WindowNum}_cv1_x SetFilename $input_file
    p${PageNum}w${WindowNum}_cv1_y SetFilename $input_file
                               
    p${PageNum}w${WindowNum}_cv1_x SetDataType $X_Type
    p${PageNum}w${WindowNum}_cv1_x SetRequest $X_Request
    p${PageNum}w${WindowNum}_cv1_x SetComponent $X_Component

    p${PageNum}w${WindowNum}_cv1_y SetDataType $Y_Type
    p${PageNum}w${WindowNum}_cv1_y SetRequest $Y_Request
    p${PageNum}w${WindowNum}_cv1_y SetComponent $Y_Component
                               
    #p${PageNum}w${WindowNum}_cv1_$ui SetName "peel_Target"

    p${PageNum}w${WindowNum}cl_$ui Recalculate
    p${PageNum}w${WindowNum}cl_$ui Autoscale
    p${PageNum}w${WindowNum}cl_$ui Draw

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.