style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<powermixx> a écrit dans le message de news:Is
href="mailto:6144335@discussion.autodesk.com">6144335@discussion.autodesk.com...
there a way to select a closed polygon and change it to a wipeout? Or can
AutoCAD 'follow' (auto-trace) existing geometry and create an abstract shaped
polygon? Thanks!
You may need to load the vl functions using (vl-load-com)
It needs to be loaded anytime you want to use visualLISP functions.
It is only loaded in the current drawing (I think) So, you should either add it to acaddoc.lsp or to the beginning of any lisp file that uses visualLISP
BTW.. I've been using hatches as wipeouts for a long time and I think it's more useful and easier than wipeouts. It also avoids problems that wipeouts sometimes can cause when plotting to PDF. My drawings are set up to use Style Dependent Plot styles (.STB) instead of Color Dependant (.CTB). Then I have a plot style that plots 0% screened (i.e. no line density) and 00 lineweight or 0 width lines. Then I have a a G-WIPE layer using that plotstyle. Then anything on that layer acts as a wipeout (Polylines w/ width, hatches etc.). Give it a try if you can.
Gouhar, here you have very useful routine for making double hatches that imitate WIPEOUTs... You can use it on any closed shape like ordinary hatch... Only thing you have to do is to turn off or freeze layer HATCH-WIPEOUT when you are in paper space (assuming that you have set Paperspace background color to white)... Everything else is set... Hatch that is to be ploted has color 255,255,255 so it behaves just like ordinary WIPEOUT, and another masking hatch that comes over one that is plottable is on layer HATCH-WIPEOUT and has color of Model Space background, so it's basically the same as ordinary WIPEOUT... I even made this work with reactors, but I think it's much safer that you manually turn that maksing layer off...
Here is basic routine I use and have it in my Startup Suite...
http://www.cadtutor.net/forum/showthread.php?85448-Convert-DONUT-to-wipeout-DONUT&p=#3
And here is one with reactor, but be careful if you use this version (CAD is very unstable when it comes to reactors and may crash...) And make sure that once you loaded reactor, and you don't need it any more you decativate it with (vlr-remove *reactor variable*) or if you have more reactors you decativae them all with (vlr-remove-all)... As you know twicely loading the same reactor may cause unpredicatable behaviour of ACAD...
http://www.theswamp.org/index.php?topic=46658.msg516705#msg516705
M.R.
I am getting this error when trying to use the lisp routine
"error: no function definition: ENT2PTLST
Any idea why?