Jump to content

create a block that will stretch with text?


Recommended Posts

Posted

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 :)

Posted

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.

Posted
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

Posted

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.

Posted
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.

Posted

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.

ATTRIBUTE.dwg

Posted

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

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...