Das Wissen aller Anwender nutzen

Im Allplan Connect Forum tauschen sich Anwender aus, geben wertvolle Tipps oder beraten sich bei ganz konkreten Aufgabenstellungen − auch international.
Und damit wirklich keine Frage unbeantwortet bleibt, unterstützen die Mitarbeiter des Technischen Supports ebenfalls aktiv das Forum.

Es erwarten Sie:

  • Foren-Vielfalt aus CAD Architektur, CAD Ingenieurbau uvm.
  • Tipps von User für User
  • international: Deutsch, Englisch, Italienisch, Französisch und Tschechisch

Melden Sie sich jetzt an und diskutieren Sie mit!

Zur Registrierung

[Frage] NemAll_Python_Geometry.html not found exception [Gelöst]


Hello!

I want to create my own PythonParts, but first I need to figure out how to debug existing stuff. So now I am trying to debug some examples with Visual Studio Code. After a lot of trial and error, I finally have my workspace in VS Code. Now I want to execute the "Attach to Allplan (workspace)", but I get an exception, saying the NemAll_Python_Geometry.html is not found/missing (see attachment).

I have no clue what I am doing wrong, can someone please help?
Thanks in advance!

Anhänge (1)

Typ: image/png
41-mal heruntergeladen
Größe: 283,94 KiB

Lösung anzeigen Lösung verbergen

Hi Melanie,

I suppose you get the error I attached. And I assume, that the configuration of your attach action in VS code looks like this:

            "name": "Attach to Allplan",
            "port": 5678,
            "host": "localhost",
            "request": "attach",
            "type": "python",
            "justMyCode": false,

If that is the case, before you attach to Allplan, you must start the PythonPart StartPythonDebug from the Examples/PythonParts/ToolsAndStartExamples. When the window pop up, you hit OK. From that moment on, Allplan is listening for a debugger to attach to it. You can tell that, because Allplan is stuck at the moment - you can't do anything.

So, when the pop-up window is closed by hitting OK, you can start "Attach to Allplan" in VS-Code.

Allplan is listening on the port 5678, so also make sure, that this port is not blocked on your PC by any firewall or so.

Best,
Bart

Anhänge (1)

Typ: image/png
0-mal heruntergeladen
Größe: 6,28 KiB
11 - 11 (11)

Hi Melanie,

I suppose you get the error I attached. And I assume, that the configuration of your attach action in VS code looks like this:

            "name": "Attach to Allplan",
            "port": 5678,
            "host": "localhost",
            "request": "attach",
            "type": "python",
            "justMyCode": false,

If that is the case, before you attach to Allplan, you must start the PythonPart StartPythonDebug from the Examples/PythonParts/ToolsAndStartExamples. When the window pop up, you hit OK. From that moment on, Allplan is listening for a debugger to attach to it. You can tell that, because Allplan is stuck at the moment - you can't do anything.

So, when the pop-up window is closed by hitting OK, you can start "Attach to Allplan" in VS-Code.

Allplan is listening on the port 5678, so also make sure, that this port is not blocked on your PC by any firewall or so.

Best,
Bart

Anhänge (1)

Typ: image/png
0-mal heruntergeladen
Größe: 6,28 KiB
11 - 11 (11)