Author Topic: series of blocks  (Read 2249 times)

0 Members and 1 Guest are viewing this topic.

CADEC70

  • Guest
series of blocks
« 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

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: series of blocks
« Reply #1 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?
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

CADEC70

  • Guest
Re: series of blocks
« Reply #2 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?

deegeecees

  • Guest
Re: series of blocks
« Reply #3 on: January 15, 2008, 12:08:39 PM »
I smell a reactor...

ronjonp

  • Needs a day job
  • Posts: 7529
Re: series of blocks
« Reply #4 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.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

daron

  • Guest
Re: series of blocks
« Reply #5 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.

deegeecees

  • Guest
Re: series of blocks
« Reply #6 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.

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: series of blocks
« Reply #7 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.
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

daron

  • Guest
Re: series of blocks
« Reply #8 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.