PDA

View Full Version : Dynamic Block Rotation



RFRUSSO
15th May 2007, 06:25 pm
I have a North Arrow that I would love to make into a dynamic block. I would like to be able to rotate the N that represents where the north direction is. But while rotating the N around the center of a circle I would like the letter itself to stay un-rotated. It seems simple, if I rotate the letter around the axis of a circle 90 deg, I would like the letter itself to rotate -90 deg on it's own axis. Of course this is easy to do manualy, but how do i do it so that rotation 1 automaticaly triggers rotation 2?

Cad64
15th May 2007, 09:32 pm
Take a look at these video tutorials, they are very helpful: http://www.cadclips.com/Acad2006-DynamicBlocks.htm

RFRUSSO
15th May 2007, 10:12 pm
Those are great videos. I have watched them all when i first started working with CAD 2006. They don't cover what I am trying to do. I was hoping that some one here would know if it could be done and if so how to do it.

Cad64
16th May 2007, 03:57 am
I've been trying, but I can't find a way to make the "N" spin as it's being rotated around the circle. :unsure:

dbroada
16th May 2007, 06:28 am
I thought that I had done this in the past but I can't get it to work now. either. I was convinced that I rotated the text at angle * -1 but that no longer works. I also tried moving the text but had nothing to tie it to.

dbroada
16th May 2007, 09:05 am
this works if you only rotate orthogonally!

:D

We need a way of rotating the letter AGAINST the other angle. This rotates with and subsequently rotates twice as fast as the circle.

dbroada
16th May 2007, 10:15 am
got it!!!!!!

now where's the SMUG smillie?

Cad64
16th May 2007, 02:05 pm
Hmmm, can't seem to get the drawing to work. When I click on the link, the drawing opens in the block editor. Then when I close out of the editor, the drawing closes. I get a message stating "the drawing contains authoring elements, open in block editor?" If I click "Yes," the drawing opens in the block editor, if I click "No" the drawing opens without any dynamic properties.

dbroada
16th May 2007, 02:15 pm
Oh.

Instead of opening it, save it and then INSERT into your drawing. I drew it in metric so may be an odd scale!

Cad64
16th May 2007, 02:19 pm
:lol: Nice one, you get a gold star for that :star:

dbroada
16th May 2007, 02:27 pm
:lol: Nice one, you get a gold star for that :star:
Thanks. :D

I've waited most of the morning for somebody to ask me how its done. :cry:











so I'll tell anyway. :)

I excluded the "N" from the rotate selection set but have added a Point Parameter at its insert point. There is a Move action associated with the Point parameter and a Chain action on the Point. When the rotation is applied all but the N rotate and the chain action on the point instigates a move. I have made a couple of cosmetic changes since I posted this but in essence it's much the same. I feel so smug! :D

RFRUSSO
16th May 2007, 04:36 pm
You are a rock star my friend! This is a great block. I was so hung up on trying to figure out how to get the N to have some sort of negative rotation value, I never even considered using any of the other options. I was a slave to the box. I am going to use this as a reference to build my own to see if I can build a similar block that is as clean and sharp as yours. Thank you.

AJSatGLS
14th Jan 2010, 10:42 pm
I know this is an old thread, but I just had to tap in and say that that really is a great block! Thanks for the help!!!

MrJackson
11th Feb 2010, 07:31 pm
Awesome block/how-to, exactly what I needed for a similar block.

BelCAD
1st Jul 2011, 02:13 pm
Been looking a long time for this one and yes... here it is, you don't know how this makes my life easier! Thx alot for sharing!!

dbroada
1st Jul 2011, 02:48 pm
I was looking for this thread a few weeks ago and could I find it? Of course not. At least I remembered what I did and managed to replicate it. Thanks for the thanks. 8)

BelCAD
4th Jul 2011, 01:57 pm
:( Just one small thing going wrong. In "test block" everything is fine and working like it should, but when saved and used in a drawing, the attribute keeps sitting at it's original place and doesn't move when a rotate is applied. Is it because I use an attribute i.s.o plain text... Strange it works in "test"
Any idea? Thnx in advance!

dbroada
4th Jul 2011, 02:14 pm
have you "locked" the attribute. If not, do so. They have to be locked if you need to move them.

BelCAD
4th Jul 2011, 02:43 pm
Yep is "locked"

dbroada
4th Jul 2011, 02:49 pm
and chain action is set on one of the actions?

edit.........

to put it another way, you certainly can use move with attributes

BelCAD
4th Jul 2011, 02:53 pm
Looks like my point param. isn't linked with my attribute. Point moves along and attrib. stays on it's place. If it would be possible, can you go true the creating process step by step. Sorry for this, but thnx in advance.

dbroada
5th Jul 2011, 10:29 am
What I would do is......

Draw all the elements in ModelSpace including the ATTDEF. Use BLOCK to make them into one block and then BEDIT them to get access to the dynamic actions. The block editor can be openned directly from BLOCK but I usually forget this bit.

add Rotation parmeter at base point and point parameter at insert point of attribute.

add Rotate action selecting all bits except attribute

add move action to Position parameter selecting just the attribute

select the Point parameter and ensure "Chain Action" is set to yes

edit--------------------

I also set the point parameter to have 0 grips.

end edit ---------------

exit block editor and test block

BelCAD
6th Jul 2011, 12:43 pm
:D Yes! That does it. No it works like it should. Thanks again for the explaining reply and the effort!! Now just need to make sure the attribute stays out of the symbol when rotating and it's perfect.

guitarguy1685
12th Jul 2011, 09:58 pm
I don't use this phase often but that was brilliant! Perfect example of thinking outside the box lolol I love it!