TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: CADEC70 on January 15, 2008, 10:37:24 AM

Title: series of blocks
Post by: CADEC70 on January 15, 2008, 10:37:24 AM
Hi All,
Please help
I need a LISP that draws a series of blocks by just drawing a line.
Thank you
Title: Re: series of blocks
Post by: CAB on January 15, 2008, 10:55:39 AM
Welcome to TheSwamp.

We have some smart folks here but no Mind Readers that I know of. 8-)

Would you post a DWG file with an example of what you are looking for?
Title: Re: series of blocks
Post by: CADEC70 on January 15, 2008, 11:32:31 AM
Sorry bout that
What I'm trying to do is, when I draw a line it will give me a series of rectangles (blocks), as shown on my attachment. And even if I draw/drag it on an angle, the blocks would follow. Is this possible?
Title: Re: series of blocks
Post by: deegeecees on January 15, 2008, 12:08:39 PM
I smell a reactor...
Title: Re: series of blocks
Post by: ronjonp on January 15, 2008, 12:11:12 PM
If you have AutoCAD 2006 or later, you could create a dynamic block with an alignment property.
Title: Re: series of blocks
Post by: daron on January 15, 2008, 12:25:57 PM
Also with an array property, but that property needs to grow up some before it'll be truly "dynamic".
Also, you wouldn't need a reactor. You could have a routine that will allow you to draw a line, then divide said line by using the measure or divide command with the block insert subfunction. It's not too hard really.
Title: Re: series of blocks
Post by: deegeecees on January 15, 2008, 12:42:29 PM
And even if I draw/drag it on an angle, the blocks would follow.

This is why I think a reactor would be needed. I may have misread it. I was thinking after the line was drawn, if he wanted to lengthen/shorten the line, a reactor would be needed to evenly space the blocks, as opposed to re-drawing it.
Title: Re: series of blocks
Post by: TimSpangler on January 15, 2008, 12:46:24 PM
I think as long as it doesn't have to be a "line" then DynBlock is the way to go.  Once you get used to there little quirks when creating them, they are great.
Title: Re: series of blocks
Post by: daron on January 15, 2008, 02:32:11 PM
And even if I draw/drag it on an angle, the blocks would follow.

This is why I think a reactor would be needed. I may have misread it. I was thinking after the line was drawn, if he wanted to lengthen/shorten the line, a reactor would be needed to evenly space the blocks, as opposed to re-drawing it.
This is what I was going off of. I didn't read the other post. Even with the above quote, drag could mean draw when viewed from a rubberbanding effect of selecting pt1 and pt2, etc.
Hi All,
Please help
I need a LISP that draws a series of blocks by just drawing a line.
Thank you

For this, I would go back to my original point here.