← Commit history

Upload 1 file(s)

John Lauer ·82547d0a73 ·2mo ago ·parent ff41b54
1 file changed +8
server.py+8
@@ -1832,6 +1832,10 @@ def _handle_aps_open(fusion_info: dict, args: dict) -> dict: # Commands that are proxied to the Fusion add-in (port 8774). # Keys are the CLI-facing names (after stripping "fusion_" prefix). ADDIN_COMMANDS = {+    # Mechanical BOM + physical properties (PR #22, Oliver / BOM Forge). These live in the+    # ADD-IN, so they must be listed here or the bridge never proxies them and the verb+    # 404s no matter how well the handler works.+    "assembly_bom", "physical_properties",     "get_app_state",     "document_info",     "activate_document",@@ -1898,6 +1902,10 @@ ADDIN_COMMAND_MAP = { # timeout in http_server.py should be the source of truth; these are # matched to that so urllib doesn't cut off before the add-in does. ADDIN_COMMAND_TIMEOUTS = {+    # getPhysicalProperties runs on Fusion's MAIN thread per component, so a big assembly+    # (or assembly_bom with includePhysicalProperties) is slow. Give both real headroom.+    "assembly_bom": 300,+    "physical_properties": 300,     "export_step": 300,     "export_iges": 300,     "export_sat": 300,