Jump to content
LFM1995

TCL script to automatically assign material properties

Recommended Posts

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...