Dynamic Blocks

## Dynamic Blocks

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

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

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

Thanks!

*Expert Elite*
Posts: 8,204
Registered: ‎04-10-2005
Message 2 of 3 (360 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?

Distinguished Contributor
Posts: 182
Registered: ‎01-08-2010
Message 3 of 3 (348 Views)

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

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