Block with 4 positions for attribute, variable alignment

Block with 4 positions for attribute, variable alignment

BL_Apex
Enthusiast Enthusiast
271 Views
3 Replies
Message 1 of 4

Block with 4 positions for attribute, variable alignment

BL_Apex
Enthusiast
Enthusiast

I am trying to create a dynamic block where the attribute text can be repositioned around the block in locked positions.

 

The block is just a basic square with a multiline attribute next to it. I would like to be able to change the location of the attribute to any of four positions: left, right, above, or below the square. Preferably this would be done using a grip. The text alignment of the attribute should change in each of the four positions i.e. if the attribute is positioned to the left, the alignment would be Middle Right, if the attribute is positioned above, the alignment would be Bottom Center, etc.

 

If anybody has an idea for a workflow on how to achieve this, or especially if you'd like to take a shot at creating it, I would really appreciate it. Thanks!

0 Likes
272 Views
3 Replies
Replies (3)
Message 2 of 4

Ed__Jobe
Mentor
Mentor

I recently did something similar in this thread.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 4

h_s_walker
Mentor
Mentor

Unfortunately you cannot change the text alignment of an attribute in a block.

However if you did 4 visibility states you could set the text alignment for 4 separate attributes. Make one visible for each state

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 4 of 4

BL_Apex
Enthusiast
Enthusiast

Interesting. Thanks. I don't know if this method would work for positioning and alignment on all four sides though. If I add a flip state, I could get it to change the alignment from Middle Left to Middle Right or Bottom Center to Top Center, but I don't see how you would be able to get it to change from Middle Right to Top Center, for example.

0 Likes