TCL script to automatically assign material properties

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

Hi,

 

I need to create a TCL script that automatically assigns material properties to individual CBEAM elements in a component composed of a large number of CBEAM elements. I am essentially creating a lattice within a component but using CBEAM elements. Does anyone have any advice regarding the script, or how I would go about doing it?

 

Kind Regards,

 

Laurence Maskell

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2019

    Hi

    You access the TCL scripts from below location 

    https://connect.altair.com/CP/script-list.html

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited March 2019

    Hi Maskell,

     

    Find the property ID (assuming the correct material is assigned) you want to set to the CBEAM element. If property is different for different CBEAM elements, you will have to come up with some naming convention to find the correct propID. 

    Find the Component ID where the CBEAM is present and set the property using:

     *setvalue comps id=$n_compID propertyid={props $n_propID}