Attributes and Dynamic Blocks

Attributes and Dynamic Blocks

liamrobertsSP
Explorer Explorer
1,129 Views
5 Replies
Message 1 of 6

Attributes and Dynamic Blocks

liamrobertsSP
Explorer
Explorer

I would like to keep the two attributes centered

 

on my block when stretching this shape in any of the 4 directions. I have managed to do so with the "SIZE" attribute but the REF attribute is not following suit, might anyone have some advice? 

 

Whilst on the topic I would like the Size attribute to alter, and feedback dimensions, each time the dynamic block is resized. What is the best way of doing this? 

 

I have attached screenshots for as much information as I can. 

 

Thanks, 

 

Liam

0 Likes
1,130 Views
5 Replies
Replies (5)
Message 2 of 6

maxim_k
Consultant
Consultant

Hi @liamrobertsSP ,

 

>>>>>I have managed to do so with the "SIZE" attribute but the REF attribute is not following suit, might anyone have some advice? 

Can you share this block here?

 

>>>>I would like the Size attribute to alter, and feedback dimensions, each time the dynamic block is resized. What is the best way of doing this? 

In AutoCAD for Windows you can use BlockPlaceholder field with linear parameter Distance property inside attribute definition to create such attribute, but on Mac you cannot create BlockPlaceholder field. Attributes with BlockPlaceholder field will work on Mac, but you cannot create / edit them.

The workaround on Mac is to create attribute with "dummy" value and then change this value by replacing it with  Field with Distance parameter of the block.


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes
Message 3 of 6

maxim_k
Consultant
Consultant

@liamrobertsSP ,

 

You attached your block in wrong topic.

But I answer here.

I modified your block and now REF attribute moves correctly. I removed unnecessary MOVE actions.

See attached drawing.


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes
Message 4 of 6

liamrobertsSP
Explorer
Explorer

Hi @maxim_k

 

The block you sent me works great, thanks for that, the only issue is when I stretch it sometimes it leaves the parameter grips behind, as in they do not move with the center of the block. Sometimes they are off (by the length of the stretch) in the other direction. Like in the Screenshot below.

 

Also when I insert it from the block library the attributes for dimensions do not update upon regen. This will only work if I copy and paste the block within the drawing. 

Thanks, 

 

Liam

0 Likes
Message 5 of 6

maxim_k
Consultant
Consultant

Hi @liamrobertsSP ,

 

>>>>>it leaves the parameter grips behind, as in they do not move with the center of the block.

Which grips do you mean? Can you mark them on the screenshot?

 

>>>>>>>>>Also when I insert it from the block library the attributes for dimensions do not update upon regen. This will only work if I copy and paste the block within the drawing. 

 

This is because you cannot create correct defaults for the attributes on Mac and I used workaround - set values of the attributes after I inserted it to the drawing. So these attribute values only work for the specific instance of the block for which they were set. You can copy this block inside drawing or copy-paste it to another drawing.


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes
Message 6 of 6

maxim_k
Consultant
Consultant

Liam,

 


@liamrobertsSP wrote:

Hi @maxim_k

 

The block you sent me works great, thanks for that, the only issue is when I stretch it sometimes it leaves the parameter grips behind, as in they do not move with the center of the block. Sometimes they are off (by the length of the stretch) in the other direction. Like in the Screenshot below.

 

......


Please look at the attached drawing.

Is it better?


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes