icon

[Frage] Get the attribute 1857 in a precast element.

Schlagworte:
  • Allplan
  • 2026
  • PythonParts
  • Precast

How can I access attribute 1857 (LKW number) of a precast element?

I use:
attributes_dict = dict(BaseElements.ElementsAttributeService.GetAttributes(select_element))
or
attributes = dict(select_element.GetAttributes(BaseElements.eAttributeReadState.ReadAll))

but I don’t get this attribute.

Can you help me?

Hi,

when is this attribute assigned to an element? I guess via the "Stack" function, but even though I put an element on a stack and a tack on a Truck, the attribute was not assigned to the precast element. Can you give me more insights on your workflow?

Best,
Bart

Hi,

We do indeed use the “Stack” function.
When we generate a “List Generator”, we can apply an attribute-based filter to make a selection, and the @1857@ (Truck number) attribute works correctly.
Please find the filter template attached.

Best regards,

Anhänge (1)

Typ: application/zip
4-mal heruntergeladen
Größe: 455,00 B