def MakeStructEx(ea, size, strname):
    strid = idaapi.get_struc_id(strname)

    if size == -1:
        size = idaapi.get_struc_size(strid)

    return idaapi.doStruct(ea, size, strid)
Convert the current item to a structure instance
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/MakeStructEx