TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: danglar on October 27, 2014, 09:37:49 AM

Title: Blocks With Wipeouts help with lisp..
Post by: danglar 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…
Title: Re: Blocks With Wipeouts help with lisp..
Post by: CAB 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.
Title: Re: Blocks With Wipeouts help with lisp..
Post by: ronjonp 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.
Title: Re: Blocks With Wipeouts help with lisp..
Post by: ChrisCarlson on October 27, 2014, 10:15:48 AM
You don't mention what the problem is?
Title: Re: Blocks With Wipeouts help with lisp..
Post by: danglar 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
Title: Re: Blocks With Wipeouts help with lisp..
Post by: kpblc 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
Title: Re: Blocks With Wipeouts help with lisp..
Post by: CAB on October 27, 2014, 11:37:21 AM
Some examples

-----------   Wipeouts   ---------------
http://www.theswamp.org/index.php?topic=43670.0
http://www.theswamp.org/index.php?topic=43652.0
http://www.theswamp.org/index.php?topic=35832.0  Lee
http://www.theswamp.org/index.php?topic=13842.0  Joe Burke
http://www.theswamp.org/index.php?topic=4446.msg54136#msg54136  CAB

http://www.theswamp.org/index.php?topic=36270.msg418035#msg418035  Gile
http://www.theswamp.org/index.php?topic=28059.msg336431#msg336431  Gile
Title: Re: Blocks With Wipeouts help with lisp..
Post by: danglar on October 28, 2014, 02:22:57 AM
Thanks for sharing!  It will be helpful for me for the first time
Title: Re: Blocks With Wipeouts help with lisp..
Post by: ChrisCarlson on October 28, 2014, 08:06:02 AM
You said this would be your second time?
Title: Re: Blocks With Wipeouts help with lisp..
Post by: danglar on October 28, 2014, 10:42:17 AM
First  successful time I mean :-)
Title: Re: Blocks With Wipeouts help with lisp..
Post by: bfred805 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,
Title: Re: Blocks With Wipeouts help with lisp..
Post by: Jeff H 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.