Dynamic Blocks

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

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

325 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!

 

 

*Expert Elite*
Charles_Shade
Posts: 8,196
Registered: ‎04-10-2005
Message 2 of 3 (315 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.
Distinguished Contributor
REID7800
Posts: 182
Registered: ‎01-08-2010
Message 3 of 3 (303 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 2015
Architecture 2010

You are not logged in.

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

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

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

Ask the Community