Hi,
I followed your recommendations. The error message in Allplan is gone, but the PythonPart doesn't start. Since I just copied the "Filling" script exactly as it is, it should work, but unfortunately, nothing happens. I read the `allplan_python.out` file and got the following error message:
=======================================================================================================
String table error:
Filename \\nb-la-032\nemdaten\allplan\prj\masterarbeit.prj\library\pythonparts\fitting_deu.xml does not exist
=======================================================================================================
Traceback (most recent call last):
File "C:\ProgramData\Nemetschek\Allplan\2024\Etc\PythonPartsFramework\GeneralScripts\BuildingElementInput.py", line 164, in start_input
self.build_ele_service.read_data_from_pyp(file_name, self.str_table_service.str_table, False, \
File "C:\ProgramData\Nemetschek\Allplan\2024\Etc\PythonPartsFramework\GeneralScripts\BuildingElementService.py", line 148, in read_data_from_pyp
build_ele_script = BuildingElementUtil.import_building_element_script(build_ele, False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ProgramData\Nemetschek\Allplan\2024\Etc\PythonPartsFramework\GeneralScripts\BuildingElementUtil.py", line 77, in import_building_element_script
script = __import__(script_name, fromlist = script_name[islash + 1:])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Allplan\Allplan 2024\Prg\Python\Lib\site-packages\reloader.py", line 199, in _import
base = _baseimport(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1138, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1078, in _find_spec
File "<frozen importlib._bootstrap_external>", line 1516, in find_spec
File "<frozen importlib._bootstrap_external>", line 1279, in __init__
File "<frozen importlib._bootstrap_external>", line 1295, in _get_parent_path
KeyError: ''
What could be the problem?
I also tried it as shown in the video on "Allplan Learn Now", but unfortunately it didn't work either. It doesn't find the PY script. I am working on a laptop that I check out from the company network; could this be a problem? Also, since the Allplan update to 2024, my local projects on my PC are shown as network folders. Could it possibly be a permissions issue?