Polyline Hatching

Mr.Hella
Enthusiast
Enthusiast

Polyline Hatching

Mr.Hella
Enthusiast
Enthusiast

Greetings all,

 

I was wondering if anyone in the group knew of a lisp routine (or a way of accomplishing this) that would allow me to draw a polyline of any width I choose but allow me to apply a hatch pattern to the entire wide line rather than the solid after completion as shown in my screen capture below.

 

Thanks in advance,

 

Mark

0 Likes
Reply
1,098 Views
4 Replies
Replies (4)

Kent1Cooper
Consultant
Consultant

You may have thought that was a totally original concept, but there is no new thing under the sun....  Check out PLWtoOutline&Hatch.lsp, with its PLWOH command, >>here<<.

Kent Cooper, AIA
0 Likes

Mr.Hella
Enthusiast
Enthusiast

Thanks Kent for getting back to me, as you have seen on this board a thousand times!.... I have zero knowledge in Lisp, so forgive me please!!

I'm using Autocad 2017 & the routine seems to return a strange behavior. I pasted in the text window detailing the commands Autocad issued on a pline that I drew at 12.00 width.

The routine loads & selects the polyline, rotates the UCS at some angle & ends. Is there something I should be doing afterward to get it hatched? The Hatch command has no affect.

Thank you,

 

Mark

 

Command: PL
PLINE
Specify start point:
Current line-width is 12.0000
Specify next point or [Arc/Halfwidth/Length/Undo/Width]:
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:

Command: APPLOAD
PLWtoOutline.lsp successfully loaded.


Command:
Type PLWO to change PLines with global Width to Outlines tracing their edges.
Command:
Command: PLWO

To change PLines with global Width to outline PLines tracing their edges,
Select objects: Specify opposite corner: 1 found

Select objects:

Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).
Converting (command) calls to (command-s) is recommended.
Command: Specify opposite corner or [Fence/WPolygon/CPolygon]: *Cancel*

0 Likes

Kent1Cooper
Consultant
Consultant

That's not the one with Hatching from the linked Post, but the one without from elsewhere in that thread.

 

But if that's what you want, try the updated version of that routine at Post 31 on that same thread.  It won't have the (command)-vs.-(command-s) issue, but whether it also fixes whatever caused it not to work for you, you'll have to see, since I don't see any error message that might help diagnose the problem, and it works for me [Acad2016 here].

 

I can do a similar upgrade to the other routine that includes the Hatching, if you like.

Kent Cooper, AIA
0 Likes

Mr.Hella
Enthusiast
Enthusiast

Kent thanks so much for your help, I'll keep trouble shooting it.

 

Regards,

 

Mark

0 Likes