temp node or point coordinate export

Beta
Beta New Altair Community Member
edited October 2020 in Community Q&A

Hi,

 

I want to summary and export the coordinate of temp nodes in Hypermesh into .CSV file.

Is there any methods to do that.

Thanks.

 

 

Tagged:

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited July 2017

    Maybe this script could give you some ideas?

     

     

  • tinh
    tinh Altair Community Member
    edited July 2017

    B)/emoticons/default_cool.png' title='B)' /> This is template-style in case you want to write out 1e+6 nodes or more:

    set TplString {

    *nodes()

        *before()

             *string('ID,X,Y,Z') *end()

        *format()

             *field(integer,id,0) *string(',')

             *field(real,globalx,0) *string(',')

             *field(real,globaly,0) *string(',')

             *field(real,globalz,0) *string(',')

             *end()

    *output()

    }

    set fpt [open nodeexport.tpl w]

    puts $fpt $TplString

    close $fpt

    *displaynone; #=> only temp nodes are displayed

    hm_answernext yes

    *usercheck nodeexport.tpl YourFileName.csv 0

     

  • Beta
    Beta New Altair Community Member
    edited July 2017

    Thank you so much @tinh