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.
Hello everyone,
I am attempting to query Hypermesh for a list of collectors (either Name or ID) so that I can loop through and perform actions on each individually. Is there any way to get this info?
Thank you!
*createmark loadcols 1 "all" ; #select all loadcols and add to mark #1
set loadcols_list [hm_getmark loadcols 1] ; #store the selection from mark #1 to a list
set loadcols_name [hm_getvalue loadcols user_ids=$loadcols_list dataname=name] ; #retrieves the list of names
#foreach load collector, do something
foreach loadcolo $loadcols_list loadcol_namo $loadcols_name {
puts "ID: $loadcolo name: $loadcol_namo"
}
*createmark loadcols 1 "all" ; #select all loadcols and add to mark #1 set loadcols_list [hm_getmark loadcols 1] ; #store the selection from mark #1 to a list set loadcols_name [hm_getvalue loadcols user_ids=$loadcols_list dataname=name] ; #retrieves the list of names #foreach load collector, do something foreach loadcolo $loadcols_list loadcol_namo $loadcols_name { puts "ID: $loadcolo name: $loadcol_namo" }
sorry...just re-read the question, and you didn't ask load collector, but 'collector'.
If it is component, this works the same, just change to 'comps' instead of 'loadcols'
Thank you for the quick reply. I will give that a shot!
I had though of attempting to build the list via hm_getcollectorname ignoring any that return errors. But I am not sure if there is a maximum value for collector ID to have complete coverage.
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…