Script to change report template Layer name

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello,


I would like to create a script that helps me to set the name of layer created by report template to be the same as my curve name. Does anybody knows if such a script already exist or maybe somebody knows how to implement it in Hyper Graph? Thanks in advance.

 

Piotr

 

Answers

  • tinh
    tinh Altair Community Member
    edited November 2016

    what is layer, sir?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2016

    Hello Tinh,

     

    Layer can be found in 'Report Templates'. I have attached picture to show an example. I have a set of curves with name 'test_curve' that had been read in using a template. Thanks to that I am able for example to hide all curves that belongs to this layer. What I would like to have is a short script that will change the name of the layers according to the curve name (now it is Layer1 for test_curve). Usually it can be changed by hand, but if you have read in 100 curves then it is not efficient to do it manually. Maybe such a script already exist? Thank you for your help.

     

    With best regards,

    Piotr

     

    <?xml version="1.0" encoding="UTF-8"?>layers.png