Hi all,
I'm looking for a bit of help with a dynamic block I'm trying to create (see attached). I need the text to be kept either horizontal or vertical, depending on the rotation of the block. The text must also stay in the same position, relative to each circle.
The first block (test) works exactly how I'd like it to; I've used point parameters for each text object and also the base point. I've used a chain action to link it to the flip and the visibilty actions, ensuring the text remains in the correct position when the block is changed. As you can see, I've set up a visibility state for 0 degrees and 90 degrees.
The second block (rotate) is a bit of a mess.
Unfortunately, the block may be rotated to any angle (e.g. 47 degrees) and I don't want to create visibility states for each variation of the block to ensure the text aligns correctly. The block must also be able to be flipped as well as rotated.
Is there any way to do this using the rotation parameter? What I am imagining in my head is being able to link or associate each text object with each circle, so that as the circle is rotated, the text moves with it and adjusts to either a horizontal or vertical position depending on the angle of rotation.
I hope this makes sense, and I hope someone can help!
Thanks in advance,
cmaso
Solved! Go to Solution.
Solved by ojuris. Go to Solution.
Solved by ojuris. Go to Solution.
Perfect ojuris, thank you so much! Having a quick look at it, I see that each "TAG" rotates round each circle. Are these chained to the "move" action or the main "rotate" action?
Libbya, I see you've used a look up table but I can't see the flip action, and for some reason I can't get this to work. I've not had any caffeine yet though, so I'm not fully with it yet!
Thanks,
cmaso
hi
chained rotation parameters are attached to main rotate action
and each small rotation action are included to corresponding move action
best regards
@Anonymous wrote:
Libbya, I see you've used a look up table but I can't see the flip action, and for some reason I can't get this to work. I've not had any caffeine yet though, so I'm not fully with it yet!
Thanks,
cmaso
The block I posted flips automatically when you use the rotate grip to rotate past the specified angle (90) and flips back at 270. Here are two more that keep the tags in order (1&2 on top). These two blocks appear the same externally but work very differently. The one on the left is a complicated combination of rotate and flip parameters/actions. The one on the right switches visibility states.
I still don't see why the additional flip is needed. Every angle with either the layout of 3,4,5 tags on top or 1,2 tags on top is available with the original automatic flip version I posted (post 3 in this thread). If you want the 1,2 tags on top then use angles 270 to 0 to 90. If you wan the 3,4,5 tags on top use the angles 90 to 270. Adding the flip is easy enough, but it is redundant and just makes the block look exactly like the other 180 degrees.
Flip3 and Flip4 are useed in the other visibility state.
Both lookups are double lookups (two tables attached). To see both tables you need BACTIONBARMODE=0. They are an incredibly powerful part of dynamic blocks. They allow you to use one table for 'Input' and the other table for 'Output'. The input table has a parameter or parameters added that the user modifies. The output table changes other parameter values within the block based on the input values. In this block I used two double lookups. One of them uses the rotation parameter value as input and changes the visibility state on the output. The other uses the flip that has the grip showing as input and changes all of the other flips as output.
Hi,
I'm looking for a bit of help with a dynamic block especially with alignment. I´m trying to create (attachements) block that align when I put it in a plan to drawing. It is all right when i use parameters - alignment, but I need to set that:
I need every idea, thanks in advance.
The Alignment Parameter will align all entities in the DynBlk.
You cannot differentiate entities in the DynBlk when using this Parameter.
Also, use only one Alignment Parameter in the DynBlk at a time.
To do what you propose you will need to approach your block from another angle so to speak.
I would suggest Flip and Rotation Actions. Though this will be slower than what you hope to achieve it is a short way to get there with the DynBlk.
You might be able to achieve the result you want with Dbl Lookups and Vis States that relate the placement of the Attrib to the Rotation of the DynBlk and with the Attrib could possibly be made to perform as you wish with the Alignment Parameter. REGEN may be required to see the update.
Regards, Charles Shade
CSHADEDESIGN | AUTOCAD LT | LT-KB | DYNAMIC BLOCKS
Please mark Accept as Solution if your question is answered. Kudos gladly accepted. ⇘
Using a block properties table is a LOT more work and the result is less functional than using a double-lookup. The lookup accepts range values so you can specify the entire range of degrees over which you would like it flipped one way and another range for when you would like it flipped the other way. Basically, two rows to the table rather than 360 rows to fill out for a 1 degree increment. The lookup version also has the benefit of being able to have infinite variability rather than an increment. Of course, with the lookup you can still define an increment in the rotation parameter properties if you want.
Double Lookup Tables have blown my mind- thank you Libbya!!
Is it possibly to modify the selection set with BACTIONBARMODE set to 0?
Can't find what you're looking for? Ask the community or share your knowledge.