test-find-table-export.jsonβ’1.75 kB
{"method":"tools/call","params":{"name":"project_execute","arguments":{"projectId":"S000009result_1278407893","code":"# Cerca metodi per salvare tabelle singole\nresult = {}\ntry:\n # 1. Verifica metodi di IO piΓΉ dettagliati\n if hasattr(visum, 'IO'):\n io = visum.IO\n all_io_methods = [m for m in dir(io) if not m.startswith('_')]\n \n # Cerca metodi con 'Table', 'Attribute', 'File'\n save_methods = [m for m in all_io_methods if 'Save' in m]\n result['all_save_methods'] = save_methods\n \n # Cerca se esiste SaveTable o simili\n table_save = [m for m in save_methods if 'Table' in m or 'Attr' in m]\n result['table_save_methods'] = table_save\n \n # 2. Verifica se esistono oggetti Lists\n if hasattr(visum, 'Lists'):\n result['has_Lists'] = True\n lists = visum.Lists\n lists_methods = [m for m in dir(lists) if not m.startswith('_')]\n result['Lists_methods'] = lists_methods[:30]\n else:\n result['has_Lists'] = False\n \n # 3. Prova a vedere se posso accedere a tabelle tramite Net\n if hasattr(visum, 'Net'):\n net = visum.Net\n # Cerca collections principali\n collections = []\n for attr in dir(net):\n if not attr.startswith('_'):\n try:\n obj = getattr(net, attr)\n if hasattr(obj, 'Count'):\n collections.append(attr)\n except:\n pass\n result['net_collections'] = collections[:20]\n \nexcept Exception as e:\n result['error'] = str(e)\nresult","description":"Cerca metodi per export tabelle singole"}},"jsonrpc":"2.0","id":14}