PDA

View Full Version : Self adjusting objects



whdjr
2004-09-01, 02:21 PM
I am using A2K on xp. I know I know. I need to move on, but that will be later this year. Right now I was wondering if there is a way to have a rectangle ( or maybe something else) self adjust its length based on the locations of blocks at its ends? Very clear isn't it?

When I move the block at the end of the rectangle I want it to follow the block that I moved. Does anyone know about this possibility? I'm thinking along the lines of reactors but I have no clue where to start.

I attached a dwg for possible enlightenment.
I hope it helps.

Thanks,

Glenn Pope
2004-09-01, 02:37 PM
Check out the The Visual LISP Developers Bible (http://www.dsxcad.com/). On page 89 there is a little simple routine that dose something like this with a circle and a line. This might a good example to get you started.

jwanstaett
2004-09-01, 05:35 PM
Check out the AutoCad Visual LISP Tutorial "Garden Path" It show how to do what you need in Acting With Reactors.