PDA

View Full Version : Attributes in Dynamic Blocks



www.cmorephotos.co.uk
18th Dec 2006, 05:22 pm
Hi

I have an issue regarding dynamic blocks using attributes.

I am basically keen to change our current symbols library over to dynamic symbols but have come accross problems with the blocks that have attributes.

For example.

I have a standard symbol for a single socket outlet which has 3 attributes attached to it. Currently I insert it and then if it needs aligning in a different direction I rotate the block and then edit the attribute properties of the block in the drawing to correct the text orientation.

Now it would be far more adventagous to have a dynamic block with 4 copies of the symbol and text all in their respective ordination.
I have tried to do this using the visibility parameter but it only shows the attributes for the first block, which are then in a different position than they should be.

Is it possible to solve this?

dbroada
19th Dec 2006, 09:46 am
can you use the ROTATE function of the dynamic block to orientate the drawing objects but leave the attributes at 0 degrees?

www.cmorephotos.co.uk
19th Dec 2006, 10:07 am
Thanks for the reply.
I have attached an image of the block to make it a bit clearer hopefully.

The top middle is the default posistion.
I have shown each of the other positions away from the default so they don't overlap and confuse, but each of them would need to be placed at the same basepoint. As you can see the attributes have to follow the block around and move position.
I tried it with the visibility option but the attributes from the first position only appear on each of the four positions.

http://www.cmorephotos.co.uk/posted/Image1.jpg

fuccaro
19th Dec 2006, 11:07 am
Maybe try to attach a rotation parameter to each attribbute. After rotating the block you still have to rotate by hand the attribbutes but using a grip point. It should be faster.
Well, just my opinion:unsure:

dbroada
19th Dec 2006, 11:08 am
I almost got a result using the rotate command.

What I tried included........

ROTATE on everything
another ROTATE on each attribute (grips shown = 0)
LOOK UP PARAMETER linking all the angles.

This worked perfectly for one attribute but not the others. I have run out of play time so had to stop but I'm sure it's possible.

I'm learing my way with dynamic blocks so I'm just guessing most of the time - but they can do some wonderful things BUT I find I get often get close but not quite to where I want to be.

dbroada
19th Dec 2006, 12:54 pm
OK, final version.......

This time I have removed the ability to rotate the block and put it all in a LOOKUP table. You have 4 rotations to choose from. :)


Obviously needs a lot more work but yiou should get the idea. Previously my attribute was rotating at twice the block rate but I had restricted it to 90 degree steps so it wasn't showing.

www.cmorephotos.co.uk
20th Dec 2006, 11:54 am
Nice one. Works very well. Although in the block editor it looks a bit complicated at first.

I will have a go myself now.

At least we know it can be done now.

Thanks alot.