TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started 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…
-
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.
-
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.
-
You don't mention what the problem is?
-
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
-
draworder could be crashed (especially during copying block from one dwg to another). Because of this you have to follow #3
-
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
-
Thanks for sharing! It will be helpful for me for the first time
-
You said this would be your second time?
-
First successful time I mean :-)
-
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,
-
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.