PDA

View Full Version : create a block that will stretch with text?



raj banerjee
5th Jun 2009, 10:19 am
hello peeps,

I have a "important Health & Safety" notice block which I want to make into a dynamic block. It has the sign at the top of the block the some mtext at the bottom where you can list the hazards. Is there a way for the block to automatically stretch when more hazards are added?? (hope that makes sence)

Many thanks

Raj :)

dbroada
5th Jun 2009, 12:20 pm
you can add a stretch action to a dynamic block but I'm not sure how automatic it can be. Can you post what you already have or at least a screen shot.

Zorg
5th Jun 2009, 01:18 pm
you can add a stretch action to a dynamic block but I'm not sure how automatic it can be. Can you post what you already have or at least a screen shot.

How do you mean? :huh:
You can stretch it while it is still a block and it will affect only that one block, and stay a block.. or every block that is of the same reference? :s

dbroada
5th Jun 2009, 01:47 pm
Depends how you do it but usually just the single block. If you expect to redefine every instance of a single type of block you would be better off using an non dynamic block.

Zorg
5th Jun 2009, 04:32 pm
Depends how you do it but usually just the single block. If you expect to redefine every instance of a single type of block you would be better off using an non dynamic block.

i'm very unfamilar with dynamic blocks:?, but by the sounds of it, i will start to investigate them. Cheers for the tip.

qball
8th Jun 2009, 09:46 pm
I'm thinking the dynamic block has attributes for the listing of hazards. Just type in the hazards for each block. And then the box has to have a stretch action, but it's manually done. see attached.
Otherwise multiple visibility parameters if the list of hazards are roughly the same.

BIGAL
9th Jun 2009, 04:32 am
It may be easier to not use a block but rather a lisp to draw what you want this way you can have as many lines of text as you want and still have a fancy box around it.

You need to do two things count lines of text (set up dummys say 10 lines = NIL, list! ) and count number of characters in a line always remember maximum. If you multiple your text height by 1.4 it gives a good vertical spacing and do say 1.0 for width, add margins equals box size. Then just text1 text2 etc draw box.

Hint write text to a file then re-read into drawing search forum here for "text in a box lisp" "XYZ" co-ords table. I will post an example if you want to go this way. Please paste example of block