Forum de la communauté Allplan

[Question] How to preserve color of element in VS


Hello everyone,

I've simplified my script to show you what kind of problem I am facing. What I would like to do is assign a color to one element and leave the other as white. This is easily achievable through node Format. The problem occurs when I use the node ObjectSwitcher2, then everything appears as white. Moving the node Format after the ObjectSwitcher2 wouldn't help me because that would change the color of all the elements.
Any ideas on what I could change to achieve my desired plan?

Pièces-jointes (2)

Type: video/mp4
Téléchargé 479 fois
Size: 2,17 MiB
Type: image/png
Téléchargé 125 fois
Size: 280,95 KiB

Show most helpful answer Hide most helpful answer

Apparently the Node ObjectSwitcher can only handle unformatted objects (geometries). It obviously ignores the existing formatting. It will be best to "apply" the formatting at the end.

Pièces-jointes (3)

Type: image/png
Téléchargé 78 fois
Size: 111,62 KiB
Type: application/x-sqlite3
Téléchargé 463 fois
Size: 132,00 KiB
Type: text/xml
Téléchargé 463 fois
Size: 480,00 B

Apparently the Node ObjectSwitcher can only handle unformatted objects (geometries). It obviously ignores the existing formatting. It will be best to "apply" the formatting at the end.

Pièces-jointes (3)

Type: image/png
Téléchargé 78 fois
Size: 111,62 KiB
Type: application/x-sqlite3
Téléchargé 463 fois
Size: 132,00 KiB
Type: text/xml
Téléchargé 463 fois
Size: 480,00 B

https://connect.allplan.com/ utilise des cookies  -  Plus d'informations

Accepter