Rotate an attribute in a block

Hello, All

I have a simple block with a couple stretch parameters, and an attribute. I can get the move parameter to work on the attribute, but I can't seem to get the rotate parameter to work. Strange behavior to note, it rotates in the block editor with "Animate" In the drawing the grips work but the attribute doesn't rotate. However, if I explode the block, the attribute presents as rotated.

Comments

  • Seen this a lot you have made an attribute but not a block, if you make a block with a single attribute it's easy to rotate and resize.

  • Mikhail
    edited December 2025

    Is this fits your needs?

    I have for all my blocks same attribute name Item. And able to Unify its rotation and size for every block instance which have this Attribute.

  • So your numbers rotate back when you refresh the view, I think you are going to have to walk me through it in baby steps, I am using lite version and am not familiar with the table you pop up.

    I want the attribute to be visible, so if I rotate the block, I can rotate the attributes back to right side up, move them around. The move grips work, It works in block editor, just the rotate grips don't work outside the editor. They do work in editor. Thanks.

  • This is the thing - dynamic props and params - are extreemly usefull, but it came with a cost - require way more resources.
    Usually I follow principle - If can avoid dynamic, do not use it.

    In example above - it's just an attribute. All blocks have same Item attribute. And ABIM have this section to unify attributes text height and rotation - all at once.

    Do what ever - and than unify all in a click.

  • Have you thought about using VL to edit the rotation of the attribute ? You can rotate any attribute. I would set the attribute to MC justification. You can get attributes using VL and loop through them.

    Give this a try

    (defun c:atts0 ( / ss obj att atts)
    (setq ss (ssget (list (cons 0 "INSERT")(cons 66 1))))
    (repeat (setq x (sslength ss))
    (setq obj (vlax-ename->vla-object (ssname ss (setq x (- x 1)))))
    (setq atts (vlax-invoke obj 'Getattributes))
    (foreach att atts
    (vlax-put att 'rotation 0.0)
    )
    )
    (princ)
    )
    (c:atts0)