The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
Does anyone know how to write a script that will go into a property or a material card and update it? For example, if I want to card edit my material 'STEEL' and enter in the density, Poisson's ratio, etc, how could I put that in a macro? Thanks.
Hi
Try the below code for a simple model and check it will update all materials density to 111
//Get material names
set MatList [hm_entitylist mats name]
// Updates all materials density to value 111
foreach MatName $MatList {
*createmark mats 1 $MatName
*attributeupdatedoublemark materials 1 4 1 1 0 111.00
}
if you want to update only for steel then use the below code
#Get material names
#Updates steel material density to value 9200
if {$MatName == 'Steel'} {
*attributeupdatedoublemark materials 1 4 1 1 0 9200
Check the code....
more generally spoken:
1) clear your command.cmf file
2) perform the actions you want to do automated by hand in HM GUI
3) check the command.cmf file and replace the () and , in the *xxxxx commands to get the same commands via tcl;
and finally: fill your parameters per tcl ...
How can I import the card edit entities to an excel sheet?
For Example)
Young's modulus to a column in excel
How can I import the card edit entities to an excel sheet? For Example) Young's modulus to a column in excel
open Utility tab and looking for 'material table'
open material table and select File>export>csv
you then can edit material properties in excel file
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…