Yes,
But it would take a robust error trapping function. In other words a
complete routine, not just the snippet I posted. -David
JB wrote:
> It works just fine as it is, as long as the command is ended with an enter.
> It doesn't reset the width if an escape is used. Is there a way around
> this?
>
> Thanks again again!
>
> -JB
>
> "JB" wrote in message news:405b3035$1_3@newsprd01...
>
>>Thanks!
>>
>>I am using your code called from this menu item and it works but for some
>>reason it isn't setting it back to 0
>>
>>
>>wpl;\w;.675;;
>>
>>Thanks again!
>>
>>-JB
>>
>>
>>"David Bethel" wrote in message
>>news:405b2ac6$1_1@newsprd01...
>>
>>>Just use the _W parameter in the PLINE command. -David
>>>
>>>(defun c:wpl (/ opw)
>>> (setq opw (getvar "PLINEWID"))
>>> (setvar "CMDECHO" 1)
>>> (command "_.PLINE")
>>> (while (> (getvar "CMDACTIVE") 0)
>>> (command pause))
>>> (setvar "CMDECHO" 0)
>>> (setvar "PLINEWID" opw)
>>> (prin1))
>>>
>>>
>>>JB wrote:
>>>
>>>>I would like to be able to set the width of a polyline or lwpolyline,
>>
>>draw
>>
>>>>the polyline or lwpolyline and then have the width set back to the way
>>
>>it
>>
>>>>was before. Does this make sense?
>>>>
>>>>Thanks!
>>>>
>>>>-JB
>>>>
>>>>
>>
>>
>
>