icon

Support Forum

[Frage] Bitmap loading errors for PythonParts icons after .allep export


Hello,

I've developed a PythonParts program and exported it successfully to an .allep file. The tool itself works correctly, and all functionality seems fine; however, whenever I start Allplan, I receive an error message for each icon of my tool:

→ "Loading Bitmap 'image.png' defined in 'Location.npd' failed."

The strange part is that after I press OK and continue opening Allplan, all icons are displayed correctly and work as expected. So the bitmaps are correctly referenced, but Allplan still throws these startup errors.
Has anyone encountered this issue before?

- What is causing this bitmap loading error?
- What is the recommended way to adding images in .allep exports, besides referencing them in the .yml file?
- How can I suppress or eliminate these error messages during startup?

Any help would be greatly appreciated.

Hi,

when you uninstall your .allep package, does the problem disappear? And appear again, after reinstalling it?
If so, try to open the .npd file and make sure, all the .png files are indeed existing. Maybe there is a typo in the file-name or something equally trivial.

- What is causing this bitmap loading error?
Normally, a non-existing png file, that is references in the bespoke .npd file
- What is the recommended way to adding images in .allep exports, besides referencing them in the .yml file?
You need to actually put the PNGs in the .allep package. And normally, if you forget this, the installation should fail.
- How can I suppress or eliminate these error messages during startup?
You cannot. Please identify, which .npd file is causing the problem. Maybe it is not even the one you created.

Best regards,
Bart

Hi Bart,

Thank you for your help[.]
The images are correctly referenced in the [.]npd file, I have checked this several times[.] The file properly references all scripts and images that I created and included in the [.]allep package[.]
In addition, when Allplan starts, it does successfully locate these files, since the icons defined in the config file are displayed correctly[.]
However, I encounter the same issue on every computer where I “install” the [.]allep file[.]

I am attaching the two different error messages I receive[.] I get one error message per script, so for my four scripts I receive a total of 2 × 4 error messages[.] Also, here is my [.]npd file:

<?xml version="1[.]0" encoding="utf-8"?><!DOCTYPE Plugin SYSTEM "[.][.]\Plugin[.]dtd" []><Plugin xml="www[[.]]w3[.]org/XML/1998/namespace">

  <PluginProperties NameIDS="100" AuthorIDS="101" HelpFileNameS="" AboutTextIDS="101" UUID="6fb684a5-2a8c-4cca-ab58-fd9b69c0df03" />

  <ModuleGroup id="1" NameIDS="200" PositionAfterIDS="201" Bitmap16IDB="usr\Library\PalloKioszto[.]png" Bitmap24IDB="usr\Library\PalloKioszto[.]png">

    <Module id="2" NameIDS="100" ACTB_TaskNameIDS="0010" ACTB_GroupNameIDS="0011" Bitmap16IDB="usr\Library\PalloKioszto[.]png" Bitmap24IDB="usr\Library\PalloKioszto[.]png">
      <Toolbar NameS="Create">
      <Button id="3410" Path="usr\Library\PalloKioszto[.]pyp" EnabledIn="FILE" NameIDS="310" Bitmap16IDB="usr\Library\PalloKioszto[.]png" Bitmap24IDB="usr\Library\PalloKioszto[.]png" /><Button id="3411" Path="usr\Library\PalloKonszignacio[.]pyp" EnabledIn="FILE" NameIDS="311" Bitmap16IDB="usr\Library\PalloKonszignacio[.]png" Bitmap24IDB="usr\Library\PalloKonszignacio[.]png" /><Button id="3412" Path="usr\Library\AttoresMasolo[.]pyp" EnabledIn="FILE" NameIDS="312" Bitmap16IDB="usr\Library\AttoresMasolo[.]png" Bitmap24IDB="usr\Library\AttoresMasolo[.]png" /><Button id="3413" Path="usr\Library\FalpanelKonszignacio[.]pyp" EnabledIn="FILE" NameIDS="313" Bitmap16IDB="usr\Library\FalpanelKonszignacio[.]png" Bitmap24IDB="usr\Library\FalpanelKonszignacio[.]png" /></Toolbar>
    </Module>
  </ModuleGroup>
  <StringTable xml:lang="en">
    <text ids="200">AddOn</text>
  <text ids="0010">Slab plugins</text><text ids="100">my_plugins</text><text ids="310">Slab layout</text><text ids="311">Slab annotation</text><text ids="312">Opening copier</text><text ids="313">Wall annotation</text></StringTable>
<StringTable xml:lang="ung"><text ids="0010">Palló plugins</text><text ids="100">my_plugins</text><text ids="310">Palló kiosztó</text><text ids="311">Palló konszignáló</text><text ids="312">Áttörés másoló</text><text ids="313">Fal konszignáló</text></StringTable></Plugin>

Thanks in advance!

Anhänge (2)

Typ: image/png
6-mal heruntergeladen
Größe: 8,75 KiB
Typ: image/png
5-mal heruntergeladen
Größe: 8,65 KiB