table

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

hi all,

I hav a list which contains ids of a components.

Can any body tell how to write a code roughly so that I can create a table with drop down which can be used to change prop ,mat etc..similar to comp manager.

 

Thanks,

Mahes

Tagged:

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited October 2017

    Hello mahes,

     

    You'll have to create a table with the different columns for comp, prop, mat etc.,
    Using a function you can auto populate the first column with all component IDs.
    Using combo boxes you can set all the other props and mats for respective comp Ids, 

    Once everything is done a Button can be used to run a procedure which modifies all the props, mats.

     


     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2017

    Hello mahes,

     

    You'll have to create a table with the different columns for comp, prop, mat etc.,
    Using a function you can auto populate the first column with all component IDs.
    Using combo boxes you can set all the other props and mats for respective comp Ids, 

    Once everything is done a Button can be used to run a procedure which modifies all the props, mats.

     


     

    Hi livillyle,

    Its difficult understand sme codes for those in hwtk toolkit.

    Thanks

    mahes

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited October 2017

    Hello Mahes, 

     

    I agree to that, you can do a Find in Files search for 'hwtk::table' inside the scripts folder (C:\Program Files\Altair\2017\hm\scripts) using notepad++ or any other code editor to get few more tcl programs using table.

  • tinh
    tinh Altair Community Member
    edited October 2017

    If you are new with scripting, it is a bit difficult

    the example in hwtk help is the rough code that you inquired, so I will not write it again for you, just modify some things to work in hypermesh:

    Unable to find an attachment - read this blog

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2017

    If you are new with scripting, it is a bit difficult

    the example in hwtk help is the rough code that you inquired, so I will not write it again for you, just modify some things to work in hypermesh:

    thanks tinh

    Unable to find an attachment - read this blog