🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Do action which can refer from the current component

User: "Yu-Ju Chen_20500"
Altair Community Member
Updated by Yu-Ju Chen_20500

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

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "Pandurang"
    Altair Community Member
    Updated by Pandurang

    Hi

     

    *currentcollector component Component_name

     

    use this api before creating element

    User: "Yu-Ju Chen_20500"
    Altair Community Member
    OP
    Updated by Yu-Ju Chen_20500

    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

    User: "Pandurang"
    Altair Community Member
    Updated by Pandurang

    Use this one to get current component Name

     

    hm_info currentcomponent

    User: "Yu-Ju Chen_20500"
    Altair Community Member
    OP
    Updated by Yu-Ju Chen_20500

    Use this one to get current component Name

     

    hm_info currentcomponent

     

    Thanks a lot!!!

    User: "Pandurang"
    Altair Community Member
    Updated by Pandurang

    This is to get id of current component:

     

    hm_getvalue component name = [hm_info currentcomponent] dataname = id