🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

hm_getdisplaycolor

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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

 

Find more posts tagged with

Sort by:
1 - 9 of 91
    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi

    from hypermesh menu Help>Hyperworks help home

    > Reference Guides> Hypermesh

     

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

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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).

    User: "tinh"
    Altair Community Member
    Updated by tinh

    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'>

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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?

    User: "Rahul_P1"
    Altair Employee
    Updated by Rahul_P1

    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

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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?

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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?' :-)

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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.

    User: "tinh"
    Altair Community Member
    Updated by tinh

    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