Dynamic Block text rotation help

Dynamic Block text rotation help

Anonymous
Not applicable
2,789 Views
18 Replies
Message 1 of 19

Dynamic Block text rotation help

Anonymous
Not applicable

Hi there, I have had a look through previous posts but having difficulty knowing where I am going wrong so any help would be appreciated.

 

I wish to create an offset arrow with text that rotates with the arrow.

 

I have created two so far, the one on the left just has a second rotate grip to rotate the text if necessary (as well as a flip to alter the arrow too) but wanted a simpler option so have used a Block table as suggested by a contributor on this site which seems to work OK but when the text does change orientation it moves well away from my arrow at the same time, unsure how to fix this.

 

Thanks

0 Likes
Accepted solutions (1)
2,790 Views
18 Replies
Replies (18)
Message 2 of 19

Anonymous
Not applicable

Try this "trick".

Instead of using text, draw a dimension with all lines and arrows turned off. The dimension text has the desired override and is aligned.  I've used this on the attached compass rose so I easily indicate plan north and true north.  Of course if the text has to change then you might have to use a different approach.  Hope this helps.

0 Likes
Message 3 of 19

ojuris
Advisor
Advisor
Accepted solution

try this

0 Likes
Message 4 of 19

Anonymous
Not applicable

Thanks ojuris, that works great.

I am still not understanding how the table works. If Angle2 is 90 then Lookup1 '1', but what does '1' mean? I will have a play and see how I go.

Thanks again, this fixes my problem

 

0 Likes
Message 5 of 19

ojuris
Advisor
Advisor

hi!

 

do you set   bactionbarmode   to 0 ?

Then you see that lookup parameter have 2 lookup tables

Message 6 of 19

Anonymous
Not applicable

In my block the text content is static, since the compass orientations have not changed in the last millennia, I see no reason to allow for new letters to identify North, South, East or West.

Ojuris has a method for the text to be variable. and rotate with the line. See at the top of the topic for this example.

0 Likes
Message 7 of 19

Anonymous
Not applicable

Thankyou!! it all makes sense now 🙂

0 Likes
Message 8 of 19

Edwin.Saez
Advisor
Advisor

@ojuris,

 

¿Cómo lograste poner esos valores? . Estoy intentando copiar a otro bloque pero no me lo permite, se borra y no aparece nada. Incluso en el mismo bloque intento copiar ese valor a otro campo a continuación pero no puede.

 

 

lookup.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

Edwin Saez


LinkedIn / AutoCAD Certified Professional


EESignature


 


Si mi respuesta fue una solución para usted, por favor seleccione "Aceptar Solución", para que también sirva a otro usuarios.

0 Likes
Message 9 of 19

ojuris
Advisor
Advisor

hi!

 

usually problem is with [270,0] - try to enter [270,359.99999999]

Message 10 of 19

Anonymous
Not applicable

I've been having problem with this.


@ojuris wrote:

try this



Can you show me steps by steps how to create it? Thanks. 

0 Likes
Message 11 of 19

mhsQTFUX
Observer
Observer

Hi Ojuris

@ojuris I would very much like to follow your best practice of making a dynamic block with text that rotate as your example does in your download Blocks-2.

Do you might have a description or video of how you set this up I could follow?

Thank you very much in advance

Br.Malene

0 Likes
Message 12 of 19

lotharerkens
Participant
Participant

It's really easy to create a rotate function for text in blocks.  You have 3 options for the text:

attdef: which defines the text as an attribute and allows you to edit / modify the text without editing the block itself

you get a choice if you want a single line or multi line text and you can define the default space the text occupies

Dtext:  Single line text which will be static in nature, but you can rotate it. (I haven't used Dtext in over 20 years, but the command still remains and is supported in AutoCAD 2023)

Mtext: Multi line text with more choices than Dtext.

Once you have decided which text format you want to deploy in your block, type the contents of your message and format to get the desired appearance.

Step 2: choose the Rotate parameter from the Block Authoring Palette and position the center point of your desired rotation relative to the text you want to be able to rotate after the block is inserted into your drawing.  I tend to use text defined as attribute and position the rotate parameter on the insertion point of the attribute.  You'll have to decide what works best for your needs.  You'll have to decide on the radius (not important for this use), the default rotation (this defines where the handle is located relative to the center of the rotation, and lastly the label position.

Step 3: swap the Block Authoring Palette to show the Actions and choose the "Rotate" action.  You'll be prompted to select a parameter and you need to pick the handle of the rotate parameter you have just placed.  now select the text / attribute you want to be able to rotate.  Right click to close / complete this command.

By default, the rotate parameter is not limited by minimum, maximum or increment of rotation.  You can easily set these restrictions by selecting the parameter and changing the properties under "Value Set" in the properties dialog.

Close the block and save on closing.

You can now rotate the text displayed in your block.

Message 13 of 19

heather_o
Enthusiast
Enthusiast

I use attributes and not text.  then you can rotate, but mirroring works best.  

Message 14 of 19

williamgodette
Observer
Observer

Rotation Parameter and action I get... The (2) look up tables I am struggling with. Can you explain how you review the two table individually?

 

0 Likes
Message 15 of 19

williamgodette
Observer
Observer

One more point. I can not get the second lookup "Action added to the single Lookup "Parameter" 

0 Likes
Message 16 of 19

Anonymous
Not applicable
Unfortunately, I cannot help with this issue, I never use Lookup Tables in any of my dynamic blocks.
Lothar
0 Likes
Message 17 of 19

h_s_walker
Mentor
Mentor

@williamgodette 

Check this thread out on how to create double lookups

How to Make a Double Lookup - Autodesk Community - AutoCAD

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 18 of 19

williamgodette
Observer
Observer

C3D 2021 is behaving different. Does not let the user add actionScreenshot 2022-09-21 123716.png

0 Likes
Message 19 of 19

h_s_walker
Mentor
Mentor

@williamgodette Click on the "lookup" text and a little menu box should show click on that and a dialog box will pop up where you can add more lookups. See the images below

Capture.JPGCapture1.JPGCapture2.JPG

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