hm_getdisplaycolor

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

How to use hm_getdisplaycolor in tcl???

 

I saw an example in altair forum i.e 

 

 

                                               hm_getdisplaycolor 6

 

What does that 6 refer to??

 

 

Thanks in advance

 

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited November 2015

    Hi

    from hypermesh menu Help>Hyperworks help home

    > Reference Guides> Hypermesh

     

    Type the command you want to be helped in 'index' tab

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2015

    Hi,

       I saw the example of using it there. But in that page there is no description of what the number is (6 in this case).

  • tinh
    tinh Altair Community Member
    edited November 2015

    Hi

    the page says refer to *setdisplaycolor command

    so you can find meaning of number 6 in help of *setdisplaycolor  image/emoticons/default_happy.png' alt='^_^' srcset='/emoticons/happy@2x.png 2x' width='20' height='20'>

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2015

    Hi,

      Thanks for the help. Is there any way to get the color of each property of a model and paste it in an excel?

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited November 2015

    If you mean through the gui, you can go to tools > property table > table > save > csv will save the component, property and colour code (number of the colour) in a csv

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2015

    Hi Rahul,

                     Thanks for the valuable piece of help. How do we get the color (not the color id) to be pasted in excel. Is there any tcl code for that?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2015

    Hi Rahul,

                     Thanks for the valuable piece of help. How do we get the color (not the color id) to be pasted in excel. Is there any tcl code for that?

    When you got the HM color code, just convert it into Excel color code before pasting.

    Don't ask me 'How to convert HM color code into Excel color code?' :-)

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2015

    Hi,

      I am able to get the excel color code, but only the excel color code gets pasted in the excel, but I need the color to be pasted in the excel. Any help is appreciated.

  • tinh
    tinh Altair Community Member
    edited November 2015

    Hi,

     

      I am able to get the excel color code, but only the excel color code gets pasted in the excel, but I need the color to be pasted in the excel. Any help is appreciated.

     

     

    using conditional format function of excel to paint corresponding color for cells based on color codes