set numOfUnsupportedCards [ hm_getentityvalue cards 'BULK_UNSUPPORTED_CARDS' '\$Bulk_NumUnsupportedCards' 0 ]
then you loop thru all the lines that the card have
for { set i 1 } { $i <= $numOfUnsupportedCards } { incr i } { set line [ hm_attributearrayvalue cards BULK_UNSUPPORTED_CARDS Bulk_UnsupportedCards $i ] # you may want to append to a list; }
to write to the card, you need to tell HM how many unsupported cards you have as an integer attribute update and also, you need to update a string array attribute of the card. It think is as follows
Yes, it is possible. Here are some snippets to read/write to the BULG_UNSUPPORTED_CARDS. Just a disclaimer, haven't try all the code below.
check that the card exists.
if it does not exists, you need to create it...
To get the names of the cards, see http://www.altairhyperworks.com/(S(3fu2zyrlbyi03xcofiue25jd))/hwhelp/Altair/hw11.0/help/hwd/hwd.htm?control_cards.htm
Get the number of unsupported cards
then you loop thru all the lines that the card have
to write to the card, you need to tell HM how many unsupported cards you have as an integer attribute update and also, you need to update a string array attribute of the card. It think is as follows
the list data_list includes the data you want to add to the unsupported card.
Hope this help. Some time a Altair AE explained me how to edit the cards. Aren't the Altair AE awesome?