Property type

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi all,

How come I get the section type of a property through tcl command.

For details plz see the attached image.

<?xml version="1.0" encoding="UTF-8"?>pro_type.thumb.PNG.946d2c3acc30090bf8f3ce99a9c664a8.PNG

 

Thanks,

Mahes

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited September 2017

    Hello mahes,

     

    The below comment should give you the cardimage of a property.

    hm_getvalue props id=1 dataname=cardimage

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2017

    hi Livillyle,

    Thanks for replying

    I think this command will fetch the 'SECTYPE'

    I need the value below that as 'SHELL' or 'BEAM'

     

     

    Thanks,

    Mahes

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited September 2017

    Hello Mahes,

     

    Sorry I didn't check the user profile, Try the below command,

     

    hm_getvalue props id=1 dataname=2902

     

    Regards,

    LL

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2017

    Hi Livillyle,

    @livillyle

    Thanks it worked.

    How come you found the id .

    through hm_getattributeidfromname?

     

    Thanks,

    mahes

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited September 2017

    Hello Mahes,

    I tried recreating the property with user profile as Ansys and checked the command.tcl (which gets saved in the working directory or in Documents by default) to get an idea of what Ids are being used. 

     

    Regards,

    LL