Text from the block lookup properties

Text from the block lookup properties

slava-l
Enthusiast Enthusiast
286 Views
3 Replies
Message 1 of 4

Text from the block lookup properties

slava-l
Enthusiast
Enthusiast

The turnout block includes different types of turnouts and a limit post. The block has a set of parameters, and the tangent text changes through the field depending on the parameters. Sometimes it is necessary to remove the limit post and save the second auxiliary text. The second text has 4 options: Move, Short, Standart and empty (written in lookup properties). The second text requires a trick with replacing the content via the field from lookup properties or something else, so as not to extend the list of options.

different types of turnoutsdifferent types of turnouts

option to remove the limit postoption to remove the limit post the limit post has been removedthe limit post has been removed

0 Likes
Accepted solutions (2)
287 Views
3 Replies
Replies (3)
Message 2 of 4

Yokaash_Selvam
Participant
Participant
Accepted solution

Create a dynamic block with an attribute (for second text).Set this attribute’s default value using a FIELD:
Right-click in the attribute text field → Insert FieldUse Object → Lookup Parameter as the field source.Select the lookup parameter that determines the second text.This lets you dynamically change the second text based on the parameter combo—without writing all values manually.

Message 3 of 4

slava-l
Enthusiast
Enthusiast

To field definition in block editor select "object", select "Lookup Parameter" and "Lookup actions". To see the attribute you need to insert the block into the file and define it again. See photo. After changing the type, you need to update the field with the command "regenall"

Insert fieldInsert fieldIn block editorIn block editorUpdate after insertUpdate after insertUpdate after insertUpdate after insert

0 Likes
Message 4 of 4

slava-l
Enthusiast
Enthusiast
Accepted solution

Found a more visual solution that does not require a field and constant regeneration - via "Double lookup". It is more difficult to create but easier to use that's why I prefer this method.

0 Likes