• Home
  • Training Books
  • Subscribe to Our Email Newsletter
  • About
    • Contributors
    • Feedback
    • Contact
    • Privacy policy
    • Cookie Policy

CADnotes

CAD Tutorials and Best Practices for professionals and students

  • Featured
  • AutoCAD
    • AutoLISP
  • Revit
    • Revit Architecture Basic
    • Revit MEP Basic Tutorial
  • Inventor
  • MicroStation
    • MicroStation Basic Tutorial
  • CADnotes on YouTube
You are here: Home / AutoCAD / How to: Keep Attributes at Dynamic Block Center

How to: Keep Attributes at Dynamic Block Center

October 6, 2010 by Edwin Prakoso 8 Comments

In this Article...

  • Creating the attribute
  • First alternative: stretch to both directions
  • Second alternative: Stretch and move actions

Do you like using AutoCAD dynamic block? If you use stretch action, some element may not be on expected place. For example, block attributes will not stay at center.

In this AutoCAD tip, we created some drawing elements and add an attribute at the block center. We want to change the block size by stretching it. The challenge is to keep the attribute at the block center. There are two ways we can do to achieve it:

  1. Keep the it at it’s position and stretch the block both ways
  2. Stretch the block to one direction and at the same time move the attribute to keep it at the center.

Let’s try this. I use a simple dynamic block for this tip: a room number tag.

Creating the attribute

Creating it is just the same, we use ATTDEF. To make this easier, set the justification to center.

attribute_justification

One more thing: make sure lock position is active. Some action will not work if you set the position to not lock.

First alternative: stretch to both directions

This should be easy. It’s similar to what I described in this dynamic block tutorial, creating column. We set the base location to Midpoint, and add two stretch actions.

stretch_to_both_direction

Second alternative: Stretch and move actions

If you create a more complex dynamic block, you probably don’t want to stretch it to both direction. For example, you want to create a table that also has array action. When you stretch it, not only the table size change, but also add more chairs. The table sample is available in CAD Notes e-book: AutoCAD Block Best Practices.

In this situation, it will be easier to stretch the block to one direction. To keep the attribute at the center, we add one more action to move it when after stretching the block.

stretch_side_but_move_the_attributes

Remember: the attribute have to move half of the stretch action distance. If we stretch the distance 100 units, then we should move it 50 units. To achieve this, select the move action icon. Open properties palette and change the distance multiplier to 0.5.

move_action_distance_multiplier

Try it and have some fun! See video below to see how to do it.

Dynamic block tip: How to keep attributes at block center

About Edwin Prakoso

I work as a Solution Consultant in Datech Solutions, Tech Data Indonesia. I've been using AutoCAD since R14 and Revit since Revit Building 9. I occasionally write for AUGIWorld magazine and I am also active in Autodesk discussion forum. I'm a member of Autodesk Expert Elite, an appreciation for individuals who give contributions to the Autodesk community.
Connect with me on twitter or LinkedIn. If you want to have my new articles sent to your email inbox, you can subscribe to the newsletter.

Filed Under: AutoCAD Tagged With: action parameter, dynamic block, dynamic block action

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

8 Comments
Inline Feedbacks
View all comments
TBZ
TBZ
2 years ago

It’s been 10 years, I don’t know if you’re still there, but I LOVE you. I spent an hour trying to figure this out. Thanks!

0
Reply
İsmail KAYA
İsmail KAYA
7 years ago

very thanks. its very useful for me. thanks from Istanbul.

0
Reply
Darren Maskell
Darren Maskell
9 years ago

Hi,

I’m trying to create a dynamic block of a radiator (with it’s length scaleable) with attributes which I can put into a table using dataextraction.

I can create both independently and they both work.

Once I create the attributes in the dynamic block, the dynamism is lost (in other words, it becomes a standard block).

Do you have any idea why this might happen and how it can be overcome?

Regards,

Darren

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Darren Maskell
9 years ago

Hi Darren,

Can you email me the block and describe what you expect the block will do? You can email it to [email protected]

0
Reply
Demi Doank
Demi Doank
11 years ago

Mr. Prakoso , do you happen to know if there's anyway that allows me to resize "enclose text object" as I edit the text.

0
Reply
demi
demi
11 years ago

Quite useful though, I was looking on how to lock the pick point at middle position no matter how long you stretch the block, any ideas? 

0
Reply
Edwin Prakoso
Edwin Prakoso
Reply to  demi
11 years ago

Have you tried to using parametric feature? It will work better instead of dynamic block parameter in your situation.

0
Reply
Theprophetican
Theprophetican
Reply to  Edwin Prakoso
11 years ago

thanks man, never crossed in my mind that parametric feature could act as if it's a dynamic block with actions parameter and all.

0
Reply
wpdiscuz   wpDiscuz
Join Our Free Email Newsletter
  Thank you for Signing Up
Please correct the marked field(s) below.
1,true,6,Contact Email,2 1,false,1,First Name,2 1,false,1,Last Name,2

Featured

Twinmotion is Now Available for Revit Users

This real-time rendering tool is now available for Revit users

Recent Articles

  • Revit 2024.1 Update is Released
  • What’s New in Revit 2024: Bending Detail
  • What’s New in Revit 2024: The Dark Theme

Advertisement

New on CADnotes

  • Revit 2024.1 Update is Released
  • What’s New in Revit 2024: Bending Detail
  • What’s New in Revit 2024: The Dark Theme
  • Autodesk Build: Using Assets for Progress Tracking
  • My Home on the ACC Unified Platform

Meet the Authors

avatar for
avatar for
avatar for
avatar for
avatar for
avatar for

Get Connected

CADnotes on FacebookCADnotes on InstagramCADnotes on TwitterCADnotes on YouTube

© 2009 – 2023 CADnotes · Feedback · Privacy Policy · Become an affiliate

wpDiscuz