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.
hi, there!
how can I get the component name of a line or surface using tcl? is there a hm function that I could use.
example. If I select a surface with its number, how I could get its component name or ID
thanks!
Try this:
*createmark surfaces 1 999
(where '999' is the id of the surface)
to get the component id use then:
hm_getentityvalue surfaces 1 'collector.id' 0
to get the component name use then:
hm_getentityvalue surfaces 1 'collector.name' 1
Regards,
Stefan
--
Stefan Hettel
Manager HyperWorks Support
Altair Engineering GmbH
Calwer Strasse 7
D-71034 Boeblingen, Germany
Tel.: +49 (0)7031 6208-46
Fax : +49 (0)7031 6208-99
mailto:hettel@altair.de
Stefan,
thanks a lot, that was easier than expected
~ cesar
I don' think that this method works anymore. Is there an alternate solution?
You don't think that, but yet actually it still works
Hi tinh,
I tried the following code:
*createmarkpanel line 1 'Please select the Line on the SAME component'; set line1 [hm_getmark line 1] set compId [hm_getentityvalue lines 1 'by comp id' 0]
hm_usermessage $compId
When I run this, it gives 1 as the output which is not the component id. Can you please tell where I am going wrong
Sorry, the code is :
*createmarkpanel line 1 'Please select the Line on the SAME component'; set line1 [hm_getmark line 1] set compId [hm_getentityvalue lines 1 'collector.id' 0]
Sorry, the code is : *createmarkpanel line 1 'Please select the Line on the SAME component'; set line1 [hm_getmark line 1] set compId [hm_getentityvalue lines 1 'collector.id' 0] hm_usermessage $compId
It should be:
*createmarkpanel line 1 'Please select the Line on the SAME component'; set line1 [hm_getmark line 1] set compId [hm_getentityvalue lines $line1 'collector.id' 0]
Hello tinh,
Sorry for the late reply. Thank you very much. It works great.
Join us for a community conversation on Pulse Width Modulation (PWM), a fundamental technique in electric motor control, and explore how different PWM strategies can yield significantly different results. This webinar provides a comparative analysis of various PWM methods and their effects on motor efficiency, torque…
Join us for a community conversation to discover the Advanced Iterative Solver(AIS) in Simcenter Feko and its application to electrically large and computationally demanding electromagnetic models. The session will provide a general overview of how iterative solution methods can help improve efficiency of large scale…
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…