Repeated Block Attributes

Repeated Block Attributes

Anonymous
Not applicable
7,078 Views
29 Replies
Message 1 of 30

Repeated Block Attributes

Anonymous
Not applicable

I have searched the entire AutoCAD LT forum for, what I thought would be, a simple solution.  I have found others asking my same question but it was from over 10 years ago, there was no resolution.  I am hoping there is now a solution in LT. 

 

I am creating terminal blocks and section view lines.  Basically these are symmetrical objects that physically have the same number or letter on each side of them.  I have created dynamic block for these items however I cannot seem to create a block attribute that works for me.  I want to make a single block attribute that basically is used in 2 places.  Or 2 block attributes that are updated by a single input.  So if I put "1" on terminal "1", the number displays on both side of the terminal block.  Similarly with my section view arrows.  Am I just totally missing something obvious or is this not possible?  I have attached my section view callout block.

 

Thanks,

Steve O

0 Likes
Accepted solutions (1)
7,079 Views
29 Replies
Replies (29)
Message 21 of 30

Mike_Y2
Advocate
Advocate

@Libbya 

 

I have tried to repeat the steps in your video but it doesn't work for me. I am clearly doing something wrong but I can't find the difference. I have attached my test drawing. Are you able to help me identify what i am doing differently? Any help would be greatly appreciated 🙂

 

 

0 Likes
Message 22 of 30

cadffm
Consultant
Consultant

@Mike_Y2  schrieb:

 I am clearly doing something wrong but I can't find the difference. 

 


 

The difference is that you "ignored" the very first sentence of Libbyas description (and the last one in the vid)

 

Libbya: "You need to perform a dynamic action in order for fields to begin working within a block"

 

For example: Set "distance1" again to 600 or use another value, run REGEN and be happy.

Sebastian

Message 23 of 30

Mike_Y2
Advocate
Advocate

@Libbya 

Appoliges... I inserted the block, then amended the attribute, then used Regen but it didn't work

 

I need too...

I inserted the block, perform a dynamic action, then amended the attribute, then use Regen. This works

Message 24 of 30

rbh1
Enthusiast
Enthusiast

Can anyone tell me how I can download the videos?  For some reason, I can't view them. They keep trying to load.

Reminds me of DSL days 😞 🤔😖

0 Likes
Message 25 of 30

rbh1
Enthusiast
Enthusiast

Got it open on my phone lol..  This is great I have been trying to figure this out for years like 2015 you rock!!!!!!

0 Likes
Message 26 of 30

morienterDPPDG
Observer
Observer

Thanks very much for this! I, too, had been scratching my head for hours until I found this thread.

 

Is there any way to do the same thing with mtext that includes a field to reference the attribute?  In the attached block the second attribute works fine after the dynamic action and a regen, but the mtext value never changes?

 

Thanks in advance 

0 Likes
Message 27 of 30

pendean
Community Legend
Community Legend

@morienterDPPDG TEXT and MTEXT objects cannot behave like attributes inside blocks (like FIELDs etc.). Sorry. It's never been an AutoCAD ability.

Are you just needing the one attribute to be replicated twice inside the same block?

 

May I ask why did you use an MTEXT? is there going to be a multi-line text possibility? MTEXT in general are not replacements for TEXT objects, never have been.

0 Likes
Message 28 of 30

morienterDPPDG
Observer
Observer

@pendean I got to thinking about doing it with one invisible attribute and two text objects that reference the field.  I need them to be MTEXT because I need two-dimensional alignments.

 

There are two basic use cases.  The first is to prevent frustrating end user behavior, like in the OP.  The second is like you say, to present the same value multiple times.  Specifically I want to have a single value present in multiple visibility states, at different locations and with different formatting.

0 Likes
Message 29 of 30

pendean
Community Legend
Community Legend

MTEXT is not possible. No go. How about a multi-line attribute? Sort of mtext-like but as attributes @morienterDPPDG 

0 Likes
Message 30 of 30

Libbya
Mentor
Mentor

You can use fields in any number of attributes referencing a single attribute.  Use multiline attributes if multiple lines are needed.  I mention in one of the earlier comments how to make it harder for users to mess up attribute fields, but there's no way to definitively prevent users from ruining fields (or blocks in general) other than training or punishment.  😛‌‌

0 Likes