However when version 11.0 was released, my lisp stoped working This was apparently due to a bug in the code for version 10.1 which was fixed in 11.0.
Since then I have been trying to find a way around the problem. Now on version 11.1
The problem was, I was creating a 2D closed polyline which I was trying to REVOLVE around its centreline. Icad didn't like this. Finally came up with an idea where I create an open polyline, trim back to the ceNtre line and then revolve this. This works, but only some of the time. (see zip file attched below for current code)
Here is a snipet of the code to trim the open polyline
Code: Select all
;--------------------------------------------------------------------
; - trim shell to line
(progn
(command "_ucs" "w" "")
(command "_trim" ENTLN1 ENTDH3 "" TP04 "")
(setq ENTDH3A (entlast))
(command "_trim" ENTLN1 ENTDH3A "" TP02z1 "")
) ;end progn
;-----------end trim shell
When this does not work, there appears to be 2 polylines at the same point. But I'm only creating 1.
SteveN
The full code is available in the FREE DWG SECTION.