Rotating block with attribute tag staying horizontal (upright)

Rotating block with attribute tag staying horizontal (upright)

J.Oye
Advocate Advocate
4,454 Views
9 Replies
Message 1 of 10

Rotating block with attribute tag staying horizontal (upright)

J.Oye
Advocate
Advocate

Trying to make a tag attached to a block and when the block is rotated want the tag and value inside it to stay horizontal (upright) when rotated.  Have seen other forums going over the process but for whatever reason I can't simulate it, very frustrating.  Have attached block for reference, when rotated the tag "6" rotates as well and doesn't stay upright even the my text style is set to "

0 Likes
Accepted solutions (2)
4,455 Views
9 Replies
Replies (9)
Message 2 of 10

Libbya
Mentor
Mentor
Accepted solution

You might be confusing the ROTATE command with the rotation performed using a dynamic parameter/action.  You have no dynamic parameters/actions in your block.  As you found, using the rotate command to rotate the block will result in all of it rotating, including the attribute.  If you are attempting to use the 'match orientation to layout' then I will opt out of the discussion as I have found it to be more frustrating than effective and your question is more appropriately asked on the general autocad forum as it is not about dynamic blocks.  If instead, you want to learn to use the dynamic parameters/actions for performing the rotation and want the attribute to remain correctly oriented, then it is easy to accomplish.  

 

As an aside, you created your block with the block editor origin ~18,000 units away.  That can create unnecessary problems.  Always create your blocks with the origin (block basepoint) appropriately located at the block itself.  

 

 

Message 3 of 10

J.Oye
Advocate
Advocate

That is exactly what I wanted, I found a different video spot on to what you did for making it a dynamic block...my only problem is that I can't seem to get the steps down with something being missed.  If you want something to rotate with the block but leave orientation the same how do you accomplish that?  The tag # and also the hexagon I want to have the same orientation.

0 Likes
Message 4 of 10

Libbya
Mentor
Mentor

The key to that behavior is the additional point parameter I added with the move action.  That parameter needs to be set to be chained (properties).  The rotate action then moves the chained point/move which in turn moves the attribute in the circle rather than rotating it.  

 

If you are still having problems, then add the appropriate parameters and actions to the point where you think it should work and then repost that version of the block.  I will diagnose and demonstrate the issue.  

0 Likes
Message 5 of 10

Libbya
Mentor
Mentor

To be clear, this allows rotation using the added rotate grip and when using that grip, the attribute will remain at its correct orientation.  If the ROTATE command is used instead of the added dynamic grip, the entire block will rotate, including the attribute, and its orientation will be skewed.  

0 Likes
Message 6 of 10

J.Oye
Advocate
Advocate

Libbya,

 

Take a look at this dynamic block, I have created grips to rotate the block along with changing view reps as well.  All is good with the exception that my hexagon tage is rotating and not keep the same orientation where the top edge should stay horizontal at all times.  What am I missing?

0 Likes
Message 7 of 10

Libbya
Mentor
Mentor
Accepted solution

As I mentioned in my last post, the point parameter needs to have chained = YES.  You should then add all items you want to maintain the horizontal orientation to the associated move action's selection set.  You then remove all of those items from the rotate action's selection set and rotate the point parameter.  When that is done, the rotated parameter and associated rotate action will rotate the point/move.  Because the point move is chained, it will in turn move the item's in its move action's selection set.  They will be moved in the circle rather than rotated.  All clear?

 

 

Message 8 of 10

J.Oye
Advocate
Advocate

Thanks for all the help, I got it working finally.  The issue I was having is that I originally did have the point parameter set to "yes" but when I added the rotate action I was collecting the rotate parameter along with the objects I wanted to rotate.  When I deselected the rotate parameter everything works great now.

Message 9 of 10

michael
Participant
Participant

Working on a tag, where I was able to get the attribute to remain horizontal as you have show. However when I go to add a second attribute into the rotate function, it only rotates the first attribute and causes that attribute to moe position when rotating. 

 

Block file is attached.  

0 Likes
Message 10 of 10

mail45
Community Visitor
Community Visitor

Thank you Libbya for this explanation. I work with dynamic blocks for years - it works great!

Now I have a more complicated task:

We work quite a lot with landscape architects. They work in Vectorworks which cannot import dynamic blocks (they appear as a group, not a symbol). To cooperate, it is important to change our dynamic blocks to standard blocks when exporting our data. The rotation of the blocks (from the dynamic block) should be kept.

I have changed my dynamic blocks to have the angle as the sole dynamic function and have found a LISP routine which will change these blocks to rotated standard blocks. Unfortunately all the attributes will rotate as well. With Battman you can set the rotation only to a relativ 0 of the blocks rotation.

Is there a way to rotate the attribute ot multiple blocks so the rotation is 0 to the current ucs?

0 Likes