Author Topic: Blocks With Wipeouts help with lisp..  (Read 4851 times)

0 Members and 1 Guest are viewing this topic.

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Blocks With Wipeouts help with lisp..
« on: October 27, 2014, 09:37:49 AM »
I usually make these kind of bloc’s without any lisp  and my algorithm is very simple
1.   Make a block
2.   Bedit block
3.   Make boundary closed polyline around block
4.   Wipeout  closed polyline around block
5.   Draworder: select wipeout and send it to back
6.   Close bedit with save
7.   Wblock edited block
And that it!
I tried to automate this problem by lisp but not successful.
Please help me…

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Blocks With Wipeouts help with lisp..
« Reply #1 on: October 27, 2014, 09:55:48 AM »
I have had bad luck with the wipeout staying in the back within a block using ACAD2006.

Show us your lisp ad we can help.
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.

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Blocks With Wipeouts help with lisp..
« Reply #2 on: October 27, 2014, 10:00:54 AM »
The most consistent draw order for me has been to create everything that should be "on top" AFTER the wipeout is created. Although I don't use wipeouts anymore, just solid hatches set to color 255.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

ChrisCarlson

  • Guest
Re: Blocks With Wipeouts help with lisp..
« Reply #3 on: October 27, 2014, 10:15:48 AM »
You don't mention what the problem is?

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: Blocks With Wipeouts help with lisp..
« Reply #4 on: October 27, 2014, 10:34:23 AM »
Actually I have not any “good example” of my work because I erased it when I was angry by myself and now I must to begin it from the “blank page”. But if somebody have same examples it seems to me it will be good to see it before I’ll start

kpblc

  • Bull Frog
  • Posts: 396
Re: Blocks With Wipeouts help with lisp..
« Reply #5 on: October 27, 2014, 10:53:05 AM »
draworder could be crashed (especially during copying block from one dwg to another). Because of this you have to follow #3
Sorry for my English.


danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: Blocks With Wipeouts help with lisp..
« Reply #7 on: October 28, 2014, 02:22:57 AM »
Thanks for sharing!  It will be helpful for me for the first time

ChrisCarlson

  • Guest
Re: Blocks With Wipeouts help with lisp..
« Reply #8 on: October 28, 2014, 08:06:02 AM »
You said this would be your second time?

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: Blocks With Wipeouts help with lisp..
« Reply #9 on: October 28, 2014, 10:42:17 AM »
First  successful time I mean :-)

bfred805

  • Guest
Re: Blocks With Wipeouts help with lisp..
« Reply #10 on: November 19, 2014, 08:25:17 PM »
I usually make these kind of bloc’s without any lisp  and my algorithm is very simple
1.   Make a block
2.   Bedit block
3.   Make boundary closed polyline around block
4.   Wipeout  closed polyline around block
5.   Draworder: select wipeout and send it to back
6.   Close bedit with save
7.   Wblock edited block
And that it!
I tried to automate this problem by lisp but not successful.
Please help me…

In my experience I have noticed that wipeouts will slow down a drawing if there are too many. Instead, why not use a hatch with a white plot style fill? For example, we use 255 in our pen table to screen objects behind detail callouts. This also gives flexibility to turn on/off or frz/thaw the screen if there is ever an instance where we don't want it because it is on it's own layer. Never have problems with a hatch not respecting draw order, either.

Best,

Jeff H

  • Needs a day job
  • Posts: 6150
Re: Blocks With Wipeouts help with lisp..
« Reply #11 on: November 19, 2014, 08:44:28 PM »
If you do not make the natural draw order where the wipeout is on bottom the built AutoCAD cloning process does preserve the DrawOrder and you are responsible for editing the objects DrawOrderTable.
http://adndevblog.typepad.com/autocad/2014/11/preserving-draworder-of-entities-while-wblockcloning-the-blocks.html

This also gives flexibility to turn on/off or frz/thaw the screen if there is ever an instance where we don't want it because it is on it's own layer.
You can also place wipeouts on their own layer and achieve same functionality.