Display load Collector ID's

karth
karth Altair Community Member
edited October 2020 in Community Q&A

In HM model, how to display the load collectors' IDs besides the node.?

This is needed in order to determine the load applied at each nodes.

<?xml version="1.0" encoding="UTF-8"?>loadcol.png

Tagged:

Answers

  • PrasannaK
    PrasannaK
    Altair Employee
    edited December 2019

    Hi Karth,

    By clicking the following image you will be able to display ids:

    image.png

     

    Steps:

    1. Click on image.png

    2. Click on 'loads'

    <?xml version="1.0" encoding="UTF-8"?>image.png

    3. Check the 'display' button

    <?xml version="1.0" encoding="UTF-8"?>image.png

    4. Click on 'loads' and select 'by collector'

    <?xml version="1.0" encoding="UTF-8"?>image.png

    By this you should be able to view load collector id.

    Thank you.

    <?xml version="1.0" encoding="UTF-8"?>image.png

  • karth
    karth Altair Community Member
    edited December 2019

    Prasanna,

    Thanks for that option.

    However, pl fid attached image. The ID getting displayed is different from the one in the model tree.

    <?xml version="1.0" encoding="UTF-8"?>Difference in ID.JPG

  • Mario_21478
    Mario_21478 Altair Community Member
    edited December 2019

    Hi,

     

    It is of course the ID of the load, not the ID of the load collector...

    I don't know a direct way to show this.

     

     

    Best Regards,

    Mario

     

  • tinh
    tinh Altair Community Member
    edited December 2019

    Yes we can see that panel 'numbers' does not support displaying collector ids.

     

    A workaround is to use a title (we are lucky because a title can be attached to a load)

    <?xml version="1.0" encoding="UTF-8"?>20191210_084659.thumb.jpg.82b49e8ea5c91a8dd29c9cc1c071d36d.jpg

     

    A sample script is like below

     

    *createmarkpanel loads 1 'Select loads to show IDs:'

    foreach lid [hm_getmark loads 1] {

         set cid [hm_getvalue loads id=$lid dataname=collector.id]

         set tid load_$lid

         *createmark titles 1 $tid

         if {[hm_marklength titles 1]} {*deletemark titles 1}

         lassign [hm_getvalue loads id=$lid dataname=baselocation] x y z

         lassign [hm_viewproject $x $y $z] X Y Z

         lassign [hm_getgraphicsarea] gx gy gw gh

         *titlecreate $tid loads $lid 0 2 1 0 [expr $X/$gw] [expr $Y/$gh]

         *titlemodify $tid borderon '' 0 0

         *titlemodify $tid titletext $cid 0 1

    }