icon

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

Issue with GetAttributesFromCurrentProject API

Schlagworte:
  • Allplan
  • WIP
  • 06
  • PythonParts
  • GetAttributesFromCurrentProject

Hi,
In the latest Allplan WIP version, when I run the unit test through this line of code, an error popup message appears like in the screenshot. Which part is causing this error? Is this API available?

Best,

Anhänge (1)

Typ: image/png
24-mal heruntergeladen
Größe: 41,80 KiB

Zitiert von: doom235
Hi,
In the latest Allplan WIP version, when I run the unit test through this line of code, an error popup message appears like in the screenshot. Which part is causing this error? Is this API available?
Best,

Hi,
Does this happen in a certain project or in any? Have you tried to cann this code in a "fresh" project, or maybe empty one with no custom attribute definitions?

The reason why I am asking: it works for me, so it must have something to do with the project you are in. Obviously, I tested it in my project with no custom attribute definitions, no formula project attributes, etc. It's difficult to say, what can cause the problem. Can you share more info?

Cheers,
Bart

I tried another project, but the result was the same. It might be that my unittest setup is incorrect, preventing it from retrieving the attribute in the project