Community
Dynamic Blocks Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to make blocks with text that automatically updates based on block rotation?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
josh_db
233 Views, 3 Replies

How to make blocks with text that automatically updates based on block rotation?

Hoping for some clarity here because I've seen it done in a block before, but I don't have access to the block to review it. I can't find an appropriate forum question either as using "attribute" and "rotation" in a search yeilds the same results which isn't what I'm after. 

 

I'm trying to create a block that can be rotated. However, I'd like to have text on that block that states the block's current rotation. For example imagine I have a block which is a line with attribute text at the top of it. If in the block properties, I rotate that block to be 121°, I'd like the text to update to state 121° automatically.

 

Currently, I am using attributes and manually entering the block's rotation into the attribute, however when I have multiple of these blocks I'd like to know if there's a way to automate this. If anyone can point me in the direction of the correct resources I can use for this it would be greatly appreciated, or a block & method I can study. Thanks, 

3 REPLIES 3
Message 2 of 4
tramber
in reply to: josh_db

While in the block editor (BEDIT), ATTDEF and then .... (in French, sorry 😉, but sure you gonna find your own way)

There is a menu specialy made for blocks in the editor.

tramber_0-1712240023967.png

Very easy

tramber_1-1712240137095.png

 

If you ADD the attribute in the editor afterwhile, you may need to syncrhonize for the previous insertions but not for the future ones.

It gonna work as soon as you regen or else, depending on FIELDEVAL

 

NB : this topic was moved here because the block editor but it is not exactly a topic about dynamic blocks....

Message 3 of 4
vinodkl
in reply to: josh_db

Hello @josh_db 

 

Yes, this can be achieved by adding the "angle" field of the rotation parameter in the attribute. Also add a move parameter to the attribute, hide the grips of the move parameter and chain it with the rotation parameter. Please find the attached example block.

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)



Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
Message 4 of 4
josh_db
in reply to: josh_db

Thank you both for your help this is much appreciated!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


”Boost