<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Fast change line, polyline, arc global width in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/14011283#M169941</link>
    <description>&lt;P&gt;Just another idea on old post change this line. As you type ChangeGw you could do it this way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun ChangeGW (width / )
;  (setq width (getreal "\nEnter the Global Width parameter (in mm): "))

just type (changegw 3)
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would change defun to CGW a bit shorter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is another way to do this using a reactor you type P12 P3 p1-5 the 1-5 is need for a width of 1.5 as the decimal point is detected differently&amp;nbsp; and so on an error will occur as command is unknown but a reactor traps this error and gets the width value and sets the global width.&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example code attached. Just had a quick look the Pline width is in it.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Feb 2026 00:06:43 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2026-02-10T00:06:43Z</dc:date>
    <item>
      <title>Fast change line, polyline, arc global width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12826600#M12997</link>
      <description>&lt;P&gt;1. In the usual way, to change the thickness of a line, polyline, or arc...&lt;BR /&gt;I typically use the following method:&lt;BR /&gt;Type the command PL -&amp;gt; Start point -&amp;gt; select [Width] -&amp;gt; Specify starting width &amp;lt;xxx&amp;gt; -&amp;gt; Specify ending width &amp;lt;xxx&amp;gt;:&lt;BR /&gt;2. Is there any way to quickly and simply change this process, for example, like this:&lt;BR /&gt;Type the command ChangeGW -&amp;gt; enter the Global Width parameter of current layer (in mm) -&amp;gt; Enter to end the command&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2024 02:49:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12826600#M12997</guid>
      <dc:creator>ancrayzy</dc:creator>
      <dc:date>2024-06-08T02:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fast change line, polyline, arc global width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12826797#M12998</link>
      <description>&lt;P&gt;PlineWidth is a global property, it has nothing to do with layers. Can't be set (only) for current layer.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PLINEWID&lt;/STRONG&gt; system variable is probably what you want. Use PGP alias if you want to have a different name for it.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2024 07:17:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12826797#M12998</guid>
      <dc:creator>johnyDFFXO</dc:creator>
      <dc:date>2024-06-08T07:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Fast change line, polyline, arc global width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12826888#M12999</link>
      <description>&lt;P&gt;Thank you for you reply &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7872421"&gt;@johnyDFFXO&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I mean there is any way to shortened the routines below with autolisp&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Type the command PL -&amp;gt; Start point -&amp;gt; select [Width] -&amp;gt; Specify starting width &amp;lt;xxx&amp;gt; -&amp;gt; Specify ending width &amp;lt;xxx&amp;gt;:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2024 09:07:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12826888#M12999</guid>
      <dc:creator>ancrayzy</dc:creator>
      <dc:date>2024-06-08T09:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fast change line, polyline, arc global width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12826903#M13000</link>
      <description>&lt;P&gt;I have created a lisp as below and it's work good for my &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;request &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;and I want to share with everyone.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If there is any better ideas, please comment to make it better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:ChangeGW (/ width)
  (setq width (getreal "\nEnter the Global Width parameter (in mm): "))
  (if width
    (progn
      (setvar "PLINEWID" width)
      (princ (strcat "\nGlobal width set to " (rtos width 2 2) " mm. Use the PL command to draw polylines with this width."))
    )
    (princ "\nInvalid width.")
  )
  (princ)
)

(defun c:PL ()
  (command "_PLINE")
  (while (setq pt (getpoint "\nSpecify next point or [Arc/Halfwidth/Length/Undo/Width]: "))
    (command pt)
  )
  (command "")
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2024 09:33:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12826903#M13000</guid>
      <dc:creator>ancrayzy</dc:creator>
      <dc:date>2024-06-08T09:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fast change line, polyline, arc global width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12827730#M13001</link>
      <description>&lt;P&gt;If you have a few like less that 10 widths that you always use then make multiple defuns that just set the Pline width then call the make pline as a seperate function. You used "PL" which is a built in function it is better to not do that.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:GW1 ( / )
(setvar "PLINEWID" 1)
(c:plx)
)
(defun c:GW2 ( / )
(setvar "PLINEWID" 2)
(c:plx)
)
(defun c:GW3 ( / )
(setvar "PLINEWID" 3)
(c:plx)
)

(defun c:PLx ( / )
(setq pt (getpoint "\nSpecify start point "))
  (command "_PLINE" pt)
  (while (setq pt (getpoint (getvar 'lastpoint)  "\nPick next point Enter to finish "))
    (command pt)
  )
  (command "")
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;A way more advanced way is you can type P3 p23 ie pxx where xx can be any number including say 123.45. It uses a reactor to see what is after the "P" and uses that value. Currently I do C123 O123 F123 for circle, offset and fillet as any value. But maybe try the simple way 1st. In what I am talking about can have 26 commands A-Z.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 04:57:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12827730#M13001</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-06-09T04:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fast change line, polyline, arc global width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12828069#M13002</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6348700"&gt;@ancrayzy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I mean there is any way to shortened the routines below with autolisp&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Type the command PL -&amp;gt; Start point -&amp;gt; select [Width] -&amp;gt; Specify starting width &amp;lt;xxx&amp;gt; -&amp;gt; Specify ending width &amp;lt;xxx&amp;gt;:&lt;/LI-CODE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The ending width default offered is always the starting width you just gave it, so you can use Enter to accept that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;(defun C:ChangeGW () (command "_.pline" "_width" pause ""))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will leave you in the PLINE command, at the point of choosing your next point or option [such as Arc].&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 11:01:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12828069#M13002</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-06-09T11:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fast change line, polyline, arc global width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12828787#M13003</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt; and &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt; for your valuable help.&lt;/P&gt;&lt;P&gt;Regards !&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 01:04:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/12828787#M13003</guid>
      <dc:creator>ancrayzy</dc:creator>
      <dc:date>2024-06-10T01:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fast change line, polyline, arc global width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/14010434#M169919</link>
      <description>&lt;P&gt;Praise the Lord Jesus Christ! May God be with you ALL!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 14:14:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/14010434#M169919</guid>
      <dc:creator>glvinson46</dc:creator>
      <dc:date>2026-02-09T14:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fast change line, polyline, arc global width</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/14011283#M169941</link>
      <description>&lt;P&gt;Just another idea on old post change this line. As you type ChangeGw you could do it this way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun ChangeGW (width / )
;  (setq width (getreal "\nEnter the Global Width parameter (in mm): "))

just type (changegw 3)
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would change defun to CGW a bit shorter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is another way to do this using a reactor you type P12 P3 p1-5 the 1-5 is need for a width of 1.5 as the decimal point is detected differently&amp;nbsp; and so on an error will occur as command is unknown but a reactor traps this error and gets the width value and sets the global width.&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example code attached. Just had a quick look the Pline width is in it.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 00:06:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fast-change-line-polyline-arc-global-width/m-p/14011283#M169941</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2026-02-10T00:06:43Z</dc:date>
    </item>
  </channel>
</rss>

