TheSwamp
CAD Forums => CAD General => Dynamic Blocks => Topic started by: Guest on March 22, 2007, 09:18:25 AM
-
I've got a DB that I'm trying to make work (maybe it's possible, maybe it's not). It's a key note call out (leader attached to a circle with a number inside). The circle can be moved about the end point of the leader. The problem arises when you rotate the circle past 90 or 270, at which point the attribute in the circle becomes "unreadable". In other words, it's upside down. Is it possible to keep the attribute rotation at ZERO degrees? If so, how? I've attached the DB that I've been dabbling with (it ACAD 2007).
-
Matt,
It is a very easy fix. I will give you some guidance and see if you can fix it. I learn better if I do some thing than if something is done for me.
The attribute needs its own 'point'.
The attribute will 'move' not rotate.
'Chaining' will be involved.
-
'Chaining' will be involved.
Sounds kinky! I'll give it a shot.
-
I have a lisp I run to dynamically set the rotation of attributes to somewhere between 315 and 90 .. depending upon the rotation of the block.
-
You might figure this out but I will mention it as another clue, changes will have to be made to the original rotation action.
-
How ya doing Matt?
-
Auuuggghhhh!!! Alright, what am I missing? (I bet it's one of those things that's just staring you right in the face).
I've attached the modified (still not working correctly) block.
Can you throw me another clue?
-
Okay, first you have to remove the attribute and the move action from the selection set of the rotate action. Then you have to add the point parameter only to the rotate action.
-
Getting closer... The attribute stays at zero degrees, but it ain't stayin' in the middle of the circle!
*sigh*
-
set the justification to middle center
-
Right-click on the block and select 'Reset Block'.
-
set the justification to middle center
The attribute? It already is.
-
Right-click on the block and select 'Reset Block'.
I don't have a RESET BLOCK option. I'm using ABS 2007 (for what it's worth).
-
Huh, whaddayknow.... RESETBLOCK is a command line command. I typed that, selected the block and all is well.
Thanks a BUNCH for your help!!
-
Glad it worked out for you Matt.
-
Just to give everyone else a tutorial in case they should ever need this information.
The first thing to do is remove the attribute from all actions currently in your DB. Then add a Point Parameter to the center of the attribute. Then add a Move action to the Point parameter and select the attribute. Next select the Point parameter and go into the Properties window and change "Chain Actions" to "Yes". Then add the Point parameter, not the attribute, to the Rotate action. You may need to "Reset Block" and "Attsync" to get everything to function properly.
-
Don't leave just yet, Will.
I'm gonna need some more guidance on another key note leader DB. In the attached image, I would like the BLUE objects to stretch and the RED objects to move only. I'm having trouble even getting started with this. First off, can THIS be done (I'm guessing it can) and secondly, what type of parameters would I need - I assume I'm going to need a different combination than the other key note DB, correct?
-
Nevermind... I think I've almost got it figured out. I'll post the finished DB when I'm done.
-
I'll post the finished DB when I'm done.
And here it is...
-
Glad you were able to figure it for yourself. :-)
I added a flip to the attribute. See if you like it.
-
Glad you were able to figure it for yourself. :-)
I added a flip to the attribute. See if you like it.
I thought it was going to involve more than what it actually took to create it.
And as for the flip, that was going to be my next step (but that was the easy part). I'm also going to add some visibility states for different leader types. I'll post the finished DB when that's done.
Thanks again for all of your help!
-
Sure thing! No problem!
-
And as promised, here's the finished product. I hope someone else can use this as a good learning tool as I have.
-
Good Job with that block Matt.
-
And as promised, here's the finished product. I hope someone else can use this as a good learning tool as I have.
thanks.. and I have learned a good bit watching this development.
thanks to you all!