ReadVectorBuilder

Livio Mariano_20459
Livio Mariano_20459
Altair Employee
edited October 2020 in Community Q&A

Ciao,

is there any way to extract the string vector of the elements ID when quering a *.h3d file?

Thanks

 

Liv  

Tagged:

Answers

  • manoj kandukuri
    manoj kandukuri
    Altair Employee
    edited February 2021

    Liv,

    If you want to extract the element ID's, you can use 'getreqlist' command. 

     

    syntax:

    request_list = getreqlist(filename, datatype)

    request_list = getreqlist(filename, subcase, datatype)

     

    --> you will get a cell variable 'request_list' with element ID's with a prefix letter 'E' like ( E1234, ....)

     

    and if you want to get the element id's in a matrix, you can do something like below :

     

    elementid = regexp(request_list,'E','split'); 

    for i = 1:length(request_list)
        elem(i,:) = str2num(elementid{i}{1,2});
    end

     

    Thanks,

    Manoj