icon

Support Forum

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
18-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