Show components by name

AlvaroBueno
AlvaroBueno Altair Community Member
edited October 2020 in Community Q&A

 

Hello,
I want to look for components whose name ends in *ext (as when we search strings in the top of model browser)
I need to show only the results components.

Thanks!

 

Answers

  • tinh
    tinh Altair Community Member
    edited November 2018

    Hi

     

    lsearch -all -inline -glob [hm_entitylist comps name] *ext

  • AlvaroBueno
    AlvaroBueno Altair Community Member
    edited December 2018

    Hello again,

    First of all, many thanks for your reply.
    I'm trying to do something like this:

    *createmark components 1 'by name' {lsearch -all -inline -glob [hm_entitylist comps name]*ext}
    *showentitybymark 1

    I've done tcl with simple commands, I've never used lists ...
    I would appreciate your help again

  • tinh
    tinh Altair Community Member
    edited December 2018

    Hello again,

    First of all, many thanks for your reply.
    I'm trying to do something like this:

    *createmark components 1 'by name' {*}[lsearch -all -inline -glob [hm_entitylist comps name] *ext]
    *showentitybymark 1

    I've done tcl with simple commands, I've never used lists ...
    I would appreciate your help again

     

     

    Bold text

  • AlvaroBueno
    AlvaroBueno Altair Community Member
    edited December 2018

     

    Tinh, thank you so much for your help!!!


    Best regards!