[Question] Workflow automations using attributes in Pythonpart API of Visual Scripting editor


Hi Allplan support,

One of our clients is currently creating workflow automations and having some difficulties accessing the geometrical attributes in the Pythonpart API or in the Visual Scripting system.

Within the Allplan attributes there are several attributes that contain geometrical information.
This information is very handy for automating workflows such as enumerating elements or indicating the elevation of the elements.
Specifically I’m looking at the following Allplan attributes:
97: bottom of element
98: Top of element
163: X coordinate
164: Y coordinate
165: Z coordinate

I have not found any way to access these attributes in Visual Scripting or in the Pythonpart API.
There is a method, GetAttributes() from NemAll_Python_BasisElements, but unfortunately this method does not return the attributes referred to above.
Therefore I’m having to resort to data processing outside of Allplan, while this workflow works it is a bit cumbersome and uninviting to users who are unfamiliar with python scripts.
Here you can see an example of this kind of workflow: https://youtu.be/e57zvD7YF-c

Can you give me any advice on how to read out these attributes with the API or in Visual scripting?
If the API currently is not able to read these attributes, I would like to ask you to consider adding a method for this.

Thanks in advance!


https://campus.allplan.com/ uses cookies  -  More information

Accept