Hi, I have tried the lisp for converting plines to hatches but I get an error:
; error: no function definition: VLAX-ENAME->VLA-OBJECT
Any tips?
I am really unfamiliar with lisp routines, could you be more specific about how I should go about?
Thanks!
Hy
(vl-load-com);;Loads Visual LISP extensions to AutoLISP
just copy and paste in the code just after
(defun c.......)
(vl-load-com)<--
rest of the code....
Cheers
Henrique
@Stuboy wrote:
I have a bolt program that draws the thickness of a bolts in elevation as a polyline with a global width, what i need is a lisp to then change this lwpolyline to a hatch, ie if global width is 20 and the polyline is 30 long i need to change this to a 20x30 solid hatch, is it possible to get the the global width and length and convert this to a boundary hatch? I need the same thing done for bolts in plan too as the circle is a lwpolyline also.
SB
Here's something I developed not long ago, that will do that: PLWtoOutline&Hatch.lsp with its PLWOH command. It will do it with any Polyline of global width, of any number of segments, open or closed, and to as many of them as you want to select at one time. I tailored it as posted here to use the SOLID pattern, non-associative, but it has instructions to adjust it for other patterns and/or for associativity. As it is currently, it keeps the boundary Polyline(s) that it builds along the edges of the global-width one(s) selected, but could easily be adjusted to delete them instead. See additional comments at the top of the file.
hi!
I have big problem,
I running Your script "PLWtoOutline&Hatch.lsp" and working well, but with continuous line, but with diferent line it still change any type of line to continuous line. as effect, I want to change Polylines with Global Width to Boundaries of it but all types of line. for example ACAD_ISO03W100
can You help me?
sorry for bad english
best regards
@superkb wrote:....
I running Your script "PLWtoOutline&Hatch.lsp" and working well, but with continuous line, but with diferent line it still change any type of line to continuous line. as effect, I want to change Polylines with Global Width to Boundaries of it but all types of line. for example ACAD_ISO03W100
....
Welcome to the Forums!
Since the routine [which is not a Script -- that has a specific meaning in AutoCAD, and this doesn't fit the definition] converts a Polyline with width into a perimeter and Hatches that, given that it uses the Solid pattern, it will necessarily result in a continuous filled area. It sounds to me as though you want to turn a non-continuous-linetype Polyline with width into something that looks the same, but is a Hatch pattern [I assume still in the Solid pattern] in multiple areas, or maybe separate Hatch patterns for each dash in the non-continuous linetype. If that's correct, it may be possible, though I don't think it will be easy. [But if that's correct, it does make me wonder why you need it to be someththe non-continuous Polyline.]
A sample illustration or drawing file would be helpful, to understand what you're looking for.