Jump to content

TCL script to automatically assign material properties

Recommended Posts



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

Share this post

Link to post
Share on other sites

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}



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now