🎉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

how to get the amounth of properties in a model

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hi

 

I need to access the amounth of properties I use in a model in order to use it in a loop but i can't find a way to got it.

 

I tried with : hm_getvalue props id=1 dataname=attributesmax       but it don't work and i don't know how to use the function hm_getvalue props not givin an id.

 

I thinking about using a table and then acces the number of row but i'd like to find an easier way to do it.

 

Thanks for your help 

Raph

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi, try

    set AttribList [hm_attributelist props 1 id]

    foreach AttribId $AttribList {

        puts 'Attribute #$AttribId : [hm_attributenamefromid $AttribId]'

    }