MACROS TO SELECT SURFACES

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

Dear All,

I would like to create a macro to select displayed surfaces in a specific location (by window or something like it) and move in a specific collector (i.e. surfaces displayed and located in window defined by (x,y,z; x1y1z1) move in collector 'Green').

could someone help me, please?

thanks a lot in advance and best regards,

Fabio

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2012

    Hello,

    normally there is the function

    *createmark entity_type mark_id '?option?' list

    and option can be 'by box' x0 y0 z0 x1 y1 z1 syst location contained all tol

    but... it doesn't work for surfaces. So i have no idea at the moment.

    Regards,

    Mario

    PS: Moving is not the problem, but you need a mark before

  • tinh
    tinh Altair Community Member
    edited October 2012

    Hello FAFORNO & MARIO

    There is a function to get location of surfaces: hm_getgeometrybox surf_id

    so to get surfs in a specific location, we can first make a list of {SurfID Location}

    and then search in this list for each location you indicated

    regards,

    tinh