Jump to content

Dynamic Block help


IsaacB

Recommended Posts

I am creating a dynamic block for our PPart (production parts) callouts on our drawings. It's an arrow with a line, a bubble on top of the line, and text inside that will say P62, P50, etc. etc. This is my first attempt at dynamic blocks.

 

From the top quadrant of the bubble to the bottom tip of the arrow I've assigned a Polar Stretch parameter so that way when it's inserted you can grab the grip at the top of the bubble and stretch it in any direction it's needed and it rotates around the arrow point.

 

My question is if there's a way to keep the text inside the bubble to always be horizontal. I guess it would need to rotate in the opposite direction as the bubble when it's being moved around? Or would I have to set it to be perpendicular or parallel to some point maybe? Any ideas?

Link to comment
Share on other sites

If I understand you correctly the way I have tackled this in the past is to put a point in the bubble. This can be rotated etc. with the buble. I then added a move action to the text so that it followed the point. (All from memory so subject to errors).

 

Can you post what you have already?

Link to comment
Share on other sites

If I understand you correctly the way I have tackled this in the past is to put a point in the bubble. This can be rotated etc. with the buble. I then added a move action to the text so that it followed the point. (All from memory so subject to errors).

 

Can you post what you have already?

 

Thanks for the reply. I've attached a PDF.

 

You can see the bubble on the right as been rotated and the text is always perpendicular to the line. The only way I've found to fix this is to double click on it which opens up the attribute edit box, go to Text Options, and change the rotation to 0. I'd really like to avoid having this step in there though to save time. These things will be getting moved around all the time because our drawings get pretty busy and packed. Is there a way to have the rotation ALWAYS be fixed at 0?

BUBBLE.pdf

Link to comment
Share on other sites

I missed out one stage, you need to ensure the move has chain actions set.

 

try this

 

[ATTACH]27987[/ATTACH]

 

That works perfect!!

 

Thanks!! I will see if I can get it figured out with what I've got.

Link to comment
Share on other sites

Ok, your kung fu is obviously stronger than mine.

 

I still can't get mine to work. I noticed on your drawing that you have constraints set up for alignment, horizontal, and vertical. Is this assigned to the text you have in the bubble?

Link to comment
Share on other sites

actually I don't have any constraints - I am using 2008 which never had such luxuries so I am jealous of you. 8)

 

one thing that may help you see what I have done is to highlight the position and change "no of grips" from 0 to 1 using your properties palette.

 

If you move the text away from the centre of the circle while you are playing it might all become a bit more obvious. Fianlly, make sure the text is only in the "move" group, not in the "polar stretch" group.

 

Of course using constraints may be the way to go but I really dont know.

Link to comment
Share on other sites

I've got it set up just like yours as far as I can tell. My point isn't moving with the center of the bubble though.

Link to comment
Share on other sites

the point parameter must be included in the polar stretch group and must have chain actions set to yes.

 

can you save your block to 2007 as post it here for me to have a look at.

Link to comment
Share on other sites

It's greatly appreciated. I would have never thought of something like that with being so new to Dynamic Blocks. It gives me lots of ideas for more improvements here to help speed things up.

Link to comment
Share on other sites

You wouldn't happen to know how to have the Attribute Editor Box pop up when this is inserted do you?

 

Right now I insert and the prompt is down in the command line. Is there a way to have the box pop up after you pic your insertion point like when you do a DDEDIT?

Link to comment
Share on other sites

Maybe I can stump you on this one :-)

 

Is there a way to have ENTER close the box instead of having to click OK every time?

Link to comment
Share on other sites

stumped on that one though. I haven't found a way yet.

 

I live in Surrey/London though so you don't have to get all the way to Sussex. :whistle:

Link to comment
Share on other sites

ok I've added a move command to this block and got it working (it's what I sent you a private message about)

 

but there's always a grip at 0,0 as well as the grip at the tip of the arrow on the block.... the Number of Grips is set to 1 but even if you turn it to 0 it keeps the one at 0,0 and turns off the one at the base of the arrow.... any way to get rid of that grip at 0,0?

Link to comment
Share on other sites

Is the grip at 0,0 the normal insertion point grip that you get on any block? You need that grip to place your block so there is no way of removing it.

 

As for the PM, I don't know is the only answer I can give although DBs have changed between our versions so you may be lucky.

 

And it is far better to start a new subject rather than asking by PM. That way you get the benefit of more potentially people contributing to your problem and pther people doing a search at another time also see previous discussions.

Link to comment
Share on other sites

yeah I got it figured out on the move and the grip. Still working on trying to figure out if pick boxes can be added or not.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...