[Otázka] NemAll_Python_Geometry.html not found exception [Vyřešeno]


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!

Přílohy (1)

Type: image/png
Staženo 31
Size: 283,94 KiB

Show solution Hide solution

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

Přílohy (1)

Type: image/png
Staženo 0
Size: 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

Přílohy (1)

Type: image/png
Staženo 0
Size: 6,28 KiB
11 - 11 (11)

https://campus.allplan.com/ používá cookies  -  Více informací

Souhlasím