Zitiert von: TheSocialPotwal
Please provide the whole .py and .pyp file. Save the .py file as .txt and zip it with the .pyp file.
I think what Hatem is trying to achieve here is processing the list of diameters placed in he drawing file with a python formula used in
ALLPLAN formula interpreter (like you have in a legend field or label) and not in a PythonPart.
And the key difference between those two is that you have completely two different inputs. In a Pythonpart, before the script execution ALLPLAN prepares the DocumentAdapter - an object through which you can access all resources in the currently opened drawing files.
This is
not the case for the python functions used in a legend/label/report. Here, what you can use as input for your function is only an attribute value. So it can be a string, integer, double, but not the whole document. The therefore, my function won't work in this context.
Best,
Bart