Help with Block Dynamics

Infra_eduardo_goncalves
Explorer
Explorer

Help with Block Dynamics

Infra_eduardo_goncalves
Explorer
Explorer

Hello!

I have a question about AutoCad dynamic blocks... What I want to do is:

 

1° - Fix the compass to always point to the North, regardless of the block's rotation.

 

2° - The scale should be from the center, as if I had given the scale command in the center of the block, the closer to the center the smaller and the further away the larger. I've tried a few times but it never works the way I want.

 

3° - If possible, a button to add the outer blocks, the pentagon and the block next to it, to the block and move them/edit attributes independently of these blocks... I've seen some dynamic blocks for home furniture that do similar things but I haven't seen how they are defined, whether they are predefined and only change the visibility or whether it is actually possible to add new items to the block.

 

If anyone can help I'd be very grateful!

 

 

0 Likes
Reply
Accepted solutions (1)
124 Views
2 Replies
Replies (2)

Libbya
Mentor
Mentor
Accepted solution

1.  To fix the north arrow to always point north, I added a chained point/move to the arrow.  I then added the point to the rotation and removed the north arrow from the rotation.  

 

2.  To make it scale from the center, I replaced the polar parameter with a linear parameter (with base location set to midpoint), associated the scale action with it, changed the scale action's base property to independent and moved the scale action's base grip to the center of the block.  I added a second independent scale to the north arrow , placed its grip at the center of the north arrow, and added the north arrow's scale action to the selection set of the north arrow's move action.  

 

3.  You cannot access the attributes of nested blocks.  To add those other two blocks and still allow their attributes to be accessible, I created 3 visibility states (pentagon, shield, both) and pasted the blocks appropriately within them and exploded the blocks so that the attributes are now accessible.  I added point/moves to each and independent scale actions to each.

 

See attached.

Infra_eduardo_goncalves
Explorer
Explorer
Thank you so much!! This was exactly what I was looking for!
0 Likes