Rotate and Flip Text in Dynamic Block (AutoCAD LT 2022)

Rotate and Flip Text in Dynamic Block (AutoCAD LT 2022)

Robert.FordEH6ZF
Participant Participant
8,494 Views
11 Replies
Message 1 of 12

Rotate and Flip Text in Dynamic Block (AutoCAD LT 2022)

Robert.FordEH6ZF
Participant
Participant

I'd like to create a block that, when rotated, keeps different text and attributes in certain orientations. I've referenced this thread, and I've been trying to emulate what @Libbya accomplished in the left version of Example (2) in the post. I especially like how the block updates in real time as it's rotated!

 

This is my block, shown in various orientations:

 

RobertFordEH6ZF_1-1626097613773.png

 

In every orientation, I want the central "C" (text) to maintain a rotation angle of 0. The other text are attributes that I want to rotate with the block but flip one direction between. It generally works, but I have to manually change the flip states (via a lookup). How do I get the attributes to flip automatically as I rotate it?

0 Likes
Accepted solutions (1)
8,495 Views
11 Replies
Replies (11)
Message 2 of 12

rapidcad
Collaborator
Collaborator

@Robert.FordEH6ZF , there are a number of previous posts in this forum if you search for "Rotate attribute". I found this one especially helpful but I can 't remember if it handles the flip idea.

https://forums.autodesk.com/t5/dynamic-blocks-forum/ferris-wheel-dynamic-block/m-p/6299450  

ADN CAD Developer/Operator
Message 3 of 12

Libbya
Mentor
Mentor

You need to use a double lookup.  If you don't know how to make one then search this forum for "how to make a double lookup".  The rest is just filling out the tables appropriately.  See screencast:

 

 

0 Likes
Message 4 of 12

Libbya
Mentor
Mentor
Accepted solution

 

Message 5 of 12

Robert.FordEH6ZF
Participant
Participant
This is EXACTLY what I needed! Thank you very much!
0 Likes
Message 6 of 12

spyros.n7
Contributor
Contributor

Hi, thanks for showing this method.

 

My question is, can the same behavior be applied to a text, while doing a polar stretch (rotate and stretch) instead of just a rotation?

 

For example, in the block in this thread, is it possible to replace the rotate action that rotates the whole block by a polar stretch action and the text to behave as wanted using a double lookup?

0 Likes
Message 7 of 12

Courtney.StewartTZXZ3
Explorer
Explorer

@Libbya Thank you! I have found this thread so helpful, but I am just really stuck on the final step and wondering if anyone could help me. I have created the exact block that I need by modifying one of the example blocks above. The problem is, I need to incorporate it in an existing block so basically have to rebuild.

 

In the attached drawing, the block on the left does exactly what I want. Could anyone tell me what I have to do to the block on the right to make it work the same? The missing piece is the Automatic rotation of the text at 90 and 270. 

 

I am very appreciative of any help!

0 Likes
Message 8 of 12

JoseMandirigma
Enthusiast
Enthusiast

can you explain the [0,90],(270,) and (90,270] also why use "()" and "[]"... I dont have any idea what's the value is all about. also the right side 0 and 180. please explain as i'm new to this kind of dynamic thing. Thank you.

Message 9 of 12

felix_hofbauerJECSJ
Participant
Participant
I would also be interested in the explanation for these steps!
0 Likes
Message 10 of 12

Libbya
Mentor
Mentor
@JoseMandirigma wrote:

can you explain the [0,90],(270,) and (90,270] also why use "()" and "[]"... I dont have any idea what's the value is all about. also the right side 0 and 180. please explain as i'm new to this kind of dynamic thing. Thank you.



@felix_hofbauerJECSJ wrote:
I would also be interested in the explanation for these steps!

The values with the brackets/parentheses/commas are range values.  Lower range limit value goes to the left of the comma, higher range limit value goes to the right of the comma.  If a parenthesis is next to a value then the value is not included in the range.  If a bracket is next to a value then the value is included in the range.  If the range extends infinitely in one of the directions, then the value can be eliminated and a parenthesis used.  [0,90] defines a range from 0 to 90 and includes both 0 and 90.  (270,) defines a range from 270 to infinity that does not include 270.  (90,270] defines a range from 90 to 270 that does not include 90 but includes 270.  The 0 and 180 values on the right side of the two tables are row names that link the two tables in order to rotate the outer text objects in the block to always be reading direction.  When the main rotation is rotated to a position where the text would begin to be upside down, the text is rotated 180 degrees in order to read correctly.

Message 11 of 12

felix_hofbauerJECSJ
Participant
Participant

Hi again!

 

How can I change the display of the parameter Set. I have the little white Boxes and not the big Lightning styled arrows.
And can someone show me how to make a Double Lookup Parameter? I tried it myself but it seems, that it's not working. I made the double lookup described in this video

I attached my file.

0 Likes
Message 12 of 12

Libbya
Mentor
Mentor

BACTIONBARMODE = 0