Do action which can refer from the current component
I wrote a customization script as a button, and it can help me to create elements.
To avoid making mistake, I hope that after I press the button, the created elements can be organized to the current component manually operation.
Which script can I add into the customization script?
Thanks
Answers
-
Hi
*currentcollector component Component_name
use this api before creating element
0 -
Altair Forum User said:
Hi
*currentcollector component Component_name
use this api before creating element
Hi, Pandurang,
Because this button will be used many times, I cannot assign a component name or id only for this script.
Or do you know how to write a script to get the component'id which is made current?
thanks
0 -
Use this one to get current component Name
hm_info currentcomponent
0 -
Altair Forum User said:
Use this one to get current component Name
hm_info currentcomponent
Thanks a lot!!!
0 -
This is to get id of current component:
hm_getvalue component name = [hm_info currentcomponent] dataname = id
0