🎉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

Tcl code to get components id list from part id/name?

User: "Sandeep Kumar Mahto"
Altair Community Member

Hello Team
I am working on script for mass balancing, through part selection. if i will get component list of respective part then I can create material with new density and can assign to respective property.
need tcl code that can give component list after part selection.

i worked at component level already but need on part level.

Thanks and regards
Sandeep

Find more posts tagged with

Sort by:
1 - 4 of 41

    Hello @Sandeep Kumar Mahto ,

    For mass balancing, please note we introduced in version 2024.1 a Mass Balancing tool, which allow to generate non-structural mass:

    Could that help?

    Best Regards,

    Michael

    User: "Sandeep Kumar Mahto"
    Altair Community Member
    OP

    Hello @Michael Herve_21439

    thank for response.
    before NSM, we do mass balancing at part level first by changing density. after that we go for NSM.

    Thanks and Regards
    Sanddep

    User: "Michael Herve"
    Altair Employee
    Accepted Answer

    Hello again,

    from a part, you should at least be able to get the list of components:

    set CompList [hm_getvalue module name=part_name dataname=HW_CID]

    Depending on the solver, you may also be able to get directly the property and/or material:

    set PropList [hm_getvalue module name=part_name dataname=HW_PID]

    set MatList [hm_getvalue module name=part_name dataname=HW_MID]

    Hope that helps,

    Michael

    User: "Sandeep Kumar Mahto"
    Altair Community Member
    OP

    Hello @Michael Herve_21439
    Thank you so much, It is working.

    Thanks and Regards
    Sandeep