Foro de Soporte Allplan

[Pregunta] Assigning standard attributes [Guardado]


Hello everyone,

I would like to assign standard attributes that are inside of an Allplan, such as Name (@507@). Normally I would create a box in a VS, then use Unlink Symbol so it would be a standard 3D object and then I would assign it the standard way in Allplan. I want to simplify this process and assign it when I create PythonPart in VS to save a few minutes.

It doesn't have to be visible when it's still PP, I need it only when converted to 3D.

Is there a way to achieve this with nodes available, or maybe you could provide an example of how to do it using ExecPythonScript?

Thank you in advance.

Adjuntos (1)

Type: image/jpeg
Descargado 8 veces
Size: 6,17 KiB

Show solution Hide solution

PythonParts (also VS-PythonParts) are macro placements, where the geometry elements (for instance your box) are on the foil of the defintion. With Visual-Scripting it isn't possible, to add attributes to the box (on the foil). But this would be neccessary, if you want to "explode" them, and remain the box with the attributes.

Solution: Make an Interactor-PythonPart with the box and attributes you want.
This box is written directly to the database at execution of the Interactor-PythonPart.

PythonParts (also VS-PythonParts) are macro placements, where the geometry elements (for instance your box) are on the foil of the defintion. With Visual-Scripting it isn't possible, to add attributes to the box (on the foil). But this would be neccessary, if you want to "explode" them, and remain the box with the attributes.

Solution: Make an Interactor-PythonPart with the box and attributes you want.
This box is written directly to the database at execution of the Interactor-PythonPart.


https://connect.allplan.com/ utiliza cookies  -  Aqui

Acéptalo