[Question] How to create multiple separate objects


Hello,

I am currently developing a script to place elements based on coordinates from an Excel file. And I want every element to get an unique attribute. The problem is that after running the script all the elements are part of one pythonpart. What I really want is that all the elements become “normal” Allplan elements and that each element can have an unique attribute.

Is this possible with Visual Scripting and how would I achieve this?

Thanks in advance.

Best regards,
Frenk

Attachments (2)

img
Screen1.png
Type: image/png
Downloaded 11 times
Size: 11,60 KiB
Type: application/zip
Downloaded 11 times
Size: 3,65 KiB
1 - 4 (4)
  • 1

Hi Frenk,

You can use "unlink smart symbol (Macro auflösen)" to convert a PythonPart to normal ALLPLAN elements. But after that, they lose all the parameters.

Currently, it is impossible in VS to assign an attribute to the elements inside a PythonPart.

VG
Xinling

Hi Xinling,

Thank you for your response. I was aware of the "unlink smart symbol" function, but I don't want to lose my newly assigned attributes. In the end my goal is to also have the attributes assigned based on the same excel file I use to place the elements on coordinates. Do you know if this would be possible if I develop a PythonPart without the use of VS?

Also is assigning attributes to elements inside A PythonPart something you are planning to add in the future?

Best regards,
Frenk

Hi Frenk,

After asking the dev team, it is currently impossible to add attributes to elements inside a PythonPart or separately for each object, even you develop a PythonPart directly.

But it is planned for the future.

Regards
Xinling

1 - 4 (4)
  • 1

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

Accept