TheSwamp

CAD Forums => CAD General => Dynamic Blocks => Topic started by: Guest on March 22, 2007, 09:18:25 AM

Title: Maintain attribute rotation at ZERO degrees?
Post 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).
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: whdjr on March 22, 2007, 09:37:26 AM
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.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Guest on March 22, 2007, 09:38:42 AM
'Chaining' will be involved.
Sounds kinky!  I'll give it a shot.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Keith™ on March 22, 2007, 09:42:20 AM
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.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: whdjr on March 22, 2007, 09:44:37 AM
You might figure this out but I will mention it as another clue, changes will have to be made to the original rotation action.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: whdjr on March 22, 2007, 10:00:24 AM
How ya doing Matt?
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Guest on March 22, 2007, 10:01:05 AM
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?
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: whdjr on March 22, 2007, 10:09:43 AM
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.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Guest on March 22, 2007, 10:18:19 AM
Getting closer... The attribute stays at zero degrees, but it ain't stayin' in the middle of the circle!

*sigh*
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Keith™ on March 22, 2007, 10:22:23 AM
set the justification to middle center
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: whdjr on March 22, 2007, 10:24:24 AM
Right-click on the block and select 'Reset Block'.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Guest on March 22, 2007, 10:24:30 AM
set the justification to middle center
The attribute?  It already is.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Guest on March 22, 2007, 10:36:00 AM
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).
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Guest on March 22, 2007, 10:37:21 AM
Huh, whaddayknow.... RESETBLOCK is a command line command.  I typed that, selected the block and all is well.

Thanks a BUNCH for your help!!
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: whdjr on March 22, 2007, 10:52:51 AM
Glad it worked out for you Matt.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: whdjr on March 22, 2007, 10:53:54 AM
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.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Guest on March 22, 2007, 11:02:51 AM
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?
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Guest on March 22, 2007, 11:26:44 AM
Nevermind... I think I've almost got it figured out.  I'll post the finished DB when I'm done.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Guest on March 22, 2007, 11:41:00 AM
I'll post the finished DB when I'm done.
And here it is...
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: whdjr on March 22, 2007, 11:54:15 AM
Glad you were able to figure it for yourself.   :-)

I added a flip to the attribute.  See if you like it.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Guest on March 22, 2007, 12:03:54 PM
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!
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: whdjr on March 22, 2007, 12:04:55 PM
Sure thing! No problem!
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Guest on March 22, 2007, 12:17:06 PM
And as promised, here's the finished product.  I hope someone else can use this as a good learning tool as I have.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: whdjr on March 22, 2007, 01:30:41 PM
Good Job with that block Matt.
Title: Re: Maintain attribute rotation at ZERO degrees?
Post by: Josh Nieman on March 22, 2007, 01:46:20 PM
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!