Dynamic Blocks

## Dynamic Blocks

New Member
Posts: 1
Registered: ‎12-17-2011
Message 1 of 3 (279 Views)

# Limit a stretch or move, but with a variable value ?? possible ??

279 Views, 2 Replies
12-17-2011 03:12 AM

Hi all,

I would like to find a way to give a maximum and minimum length to a stretch (or move) but without absolute values.

simplified example of my block:

I have 2 squares, of which one big on, and a smaller one within the bigger one. I want to be able to stretch both squared indefinatly (no problem there), but the big square may never become smaller than the small one, and the small one may never become bigger than the big one...

In other words: the inside square should always stay inside the bigger one, no matter the size of the squares.

The problem with this block is that I have a hatch pattern between the squares, and as soon as i stretch the small square outside (or equal) to the big square... the hatch pattern 'crashes'.

Please Help!

Thanks!

Please use plain text.
****Sage
Posts: 8,170
Registered: ‎04-10-2005
Message 2 of 3 (269 Views)

# Re: Limit a stretch or move, but with a variable value ?? possible ??

12-19-2011 06:07 AM in reply to: RobinGins

How would you propose the Variable to know that you needed to abandon the Stretch Action at some point that approached the maximum size of the adjacent square?

I'll ask because I do not know - Does Lisp have an if/then cability?

And are you in something other than LT that can use Lisp?

As far as the Hatch crashing - Is the Hatch included in any of the Actions in the DynBlk?

Regards, Charles Shade            Win8 FAQ
CSHADEDESIGN|AUTOCAD LT|LT-KB|DYNAMIC BLOCKS

Please mark Accept as Solution if your question is answered. Kudos gladly accepted.
Please use plain text.
Distinguished Contributor
Posts: 152
Registered: ‎01-08-2010
Message 3 of 3 (257 Views)

# Re: Limit a stretch or move, but with a variable value ?? possible ??

12-26-2011 08:04 AM in reply to: Charles_Shade

You can controll this with a reactor (lisp) but reactors can be tricky. I'll make one and you can decide if it's right for you. I'm away from autocad so you'll have to test it for me. I'll get back to you later today

_____

Reid B.
_____
Acad 2007
ADT 2004
Please use plain text.

### You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

### Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Recently Solved

• ## Radial stretching

### Browse Forums

AutoCAD Topic-Specific