<?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: Set VP Linenweight in LSP in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007146#M135325</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/484466"&gt;@eamon.fleming&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi Hernrique I finally got some time to play with this demo &amp;amp; seems to be setting the VP lineweights but it sets the first layer/color to 0.024" then all the rest to 0.083" ? I am having trouble deciphering the code to see where the 0.083" is being set? is it the LW variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eamon&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi Eamon,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;I do not have&lt;/SPAN&gt; AutoCAD in this laptop, &lt;SPAN class="hps"&gt;if&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;possible, post a sample dwg, and tonight &lt;SPAN class="hps"&gt;I'll see&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;what I can do...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;Henrique&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2016 17:30:41 GMT</pubDate>
    <dc:creator>hmsilva</dc:creator>
    <dc:date>2016-01-26T17:30:41Z</dc:date>
    <item>
      <title>Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5986634#M135314</link>
      <description>&lt;P&gt;Hi guys I have been cobbling together a program to set lineweight to colors automatically so I can update hundreds of prototypes.&lt;/P&gt;&lt;P&gt;What I have so far is working fine for the lineweight but I was wondering if it is possible to set VP lineweights at the same time using a similar method&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:assignlineweights ( / layers_col col)&lt;BR /&gt;&amp;nbsp;(SETVAR "lwunits" 1 )&lt;BR /&gt;&amp;nbsp; (vl-load-com)&lt;BR /&gt;&amp;nbsp; (or *acaddoc* (setq *acaddoc* (vla-get-activedocument (vlax-get-acad-object))))&lt;BR /&gt;&amp;nbsp; (setq layers_col (vla-get-layers *acaddoc*))&lt;BR /&gt;&amp;nbsp; (vlax-for item layers_col&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq col (vlax-get-property item 'color))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (cond ((= col 1)(vlax-put-property item 'LineWeight acLnWt025))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((= col 2)(vlax-put-property item 'LineWeight acLnWt120))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((= col 3)(vlax-put-property item 'LineWeight acLnWt035));copy down and change to suit&lt;/P&gt;&lt;P&gt;)&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; (SETVAR "lwunits" 0 )&lt;BR /&gt;&amp;nbsp; (PRINC "Assign Lineweights to Layers loaded.&amp;nbsp; Type assignlineweights to run.")&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't seem to find a variable or property like &lt;STRONG&gt;acLnWt&amp;nbsp;&lt;/STRONG&gt; but for &lt;STRONG&gt;VP Lineweight&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks to he guys whose code I poached already&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appriciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eamon&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 15:08:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5986634#M135314</guid>
      <dc:creator>eamon.fleming</dc:creator>
      <dc:date>2016-01-13T15:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5986729#M135315</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/484466"&gt;@eamon.fleming﻿&lt;/a&gt; Intergrate this code into your current lisp. It should prompt you for a lineweight and has a high rating, &lt;STRONG&gt;make sure to preset the vp on its own layer or other lines will be effected also.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the code from Lee Mac Forums, its creator is unknown.&lt;STRONG&gt; The code is really for lines by layer.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:LWChange ( / lws lw n )&lt;BR /&gt;&lt;BR /&gt;(setq lws&lt;BR /&gt;'(-3.00 0.00 0.05 0.09 0.13 0.15 0.18 0.20 0.25 0.30 0.35 0.40 0.50&lt;BR /&gt;0.53 0.60 0.70 0.80 0.90 1.00 1.06 1.20 1.40 1.58 2.00 2.11&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;(while&lt;BR /&gt;(and&lt;BR /&gt;(setq lw (getreal "\nSpecify Lineweight (-3 for Default): "))&lt;BR /&gt;(not (member lw lws))&lt;BR /&gt;)&lt;BR /&gt;(princ "\n--&amp;gt; Invalid Lineweight.")&lt;BR /&gt;)&lt;BR /&gt;(if lw&lt;BR /&gt;(progn&lt;BR /&gt;(setq lw (if (&amp;lt;= 0 lw) (fix (* 100 lw)) (fix lw)))&lt;BR /&gt;(vlax-for l (vla-get-layers (vla-get-activedocument (vlax-get-acad-object)))&lt;BR /&gt;(if&lt;BR /&gt;(and&lt;BR /&gt;(wcmatch (setq n (strcase (vla-get-name l))) "*FURN*,*EQPM*,*PFIX*")&lt;BR /&gt;(not (wcmatch n "MV-*EQPM*"))&lt;BR /&gt;)&lt;BR /&gt;(vla-put-lineweight l lw)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(princ)&lt;/P&gt;&lt;P&gt;)&lt;BR /&gt;(vl-load-com) (princ)&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 15:31:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5986729#M135315</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2016-01-13T15:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5986756#M135316</link>
      <description>Thanks Andrew I will check this out this afternoon&lt;BR /&gt;&lt;BR /&gt;Eamon</description>
      <pubDate>Wed, 13 Jan 2016 15:40:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5986756#M135316</guid>
      <dc:creator>eamon.fleming</dc:creator>
      <dc:date>2016-01-13T15:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5987047#M135317</link>
      <description>&lt;P&gt;Hi Andrew I looked at the code &amp;amp; gave it a test run &amp;amp; I am not sure what it does?&lt;BR /&gt;I am trying to set the VP Lineweight of layers based on the color of the layer, see the image below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/211281iDE23225E4373A85D/image-size/medium?v=mpbl-1&amp;amp;px=-1" alt="vplineweight.jpg" title="vplineweight.jpg" border="0" height="77" width="587" /&gt;&lt;/P&gt;&lt;P&gt;if the Lineweight is 0.70mm I want to set the VP Lineweight to 0.35mm (1/2 scale)&lt;/P&gt;&lt;P&gt;The code I have works for the lineweight but I don't know the variable for VP lineweight &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have given up on the help in autocad as you can't browse any more, you pretty much need to know what you want to search for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eamon&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 17:18:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5987047#M135317</guid>
      <dc:creator>eamon.fleming</dc:creator>
      <dc:date>2016-01-13T17:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5987148#M135318</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/484466"&gt;@eamon.fleming&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi guys I have been cobbling together a program to set lineweight to colors automatically so I can update hundreds of prototypes.&lt;/P&gt;
&lt;P&gt;What I have so far is working fine for the lineweight but I was wondering if it is possible to set VP lineweights at the same time using a similar method&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(defun c:assignlineweights ( / layers_col col)&lt;BR /&gt;&amp;nbsp;(SETVAR "lwunits" 1 )&lt;BR /&gt;&amp;nbsp; (vl-load-com)&lt;BR /&gt;&amp;nbsp; (or *acaddoc* (setq *acaddoc* (vla-get-activedocument (vlax-get-acad-object))))&lt;BR /&gt;&amp;nbsp; (setq layers_col (vla-get-layers *acaddoc*))&lt;BR /&gt;&amp;nbsp; (vlax-for item layers_col&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq col (vlax-get-property item 'color))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (cond ((= col 1)(vlax-put-property item 'LineWeight acLnWt025))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((= col 2)(vlax-put-property item 'LineWeight acLnWt120))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((= col 3)(vlax-put-property item 'LineWeight acLnWt035));copy down and change to suit&lt;/P&gt;
&lt;P&gt;)&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; (SETVAR "lwunits" 0 )&lt;BR /&gt;&amp;nbsp; (PRINC "Assign Lineweights to Layers loaded.&amp;nbsp; Type assignlineweights to run.")&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't seem to find a variable or property like &lt;STRONG&gt;acLnWt&amp;nbsp;&lt;/STRONG&gt; but for &lt;STRONG&gt;VP Lineweight&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thanks to he guys whose code I poached already&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be greatly appriciated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eamon&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi Eamon,&lt;/P&gt;
&lt;P&gt;there is no property for VPLineweight...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lineweight in a viewport( and all overrides &lt;SPAN class="hps"&gt;properties except layer visibility overrides)&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;is stored as dictionary data in layer extension dictionarie, and the Xrecord name is ADSK_XREC_LAYER_LINEWT_OVR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;If&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you are&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;not familiar&lt;/SPAN&gt; with &lt;SPAN class="hps"&gt;dictionaries&lt;/SPAN&gt;, probably it will be &lt;SPAN class="hps"&gt;easier&lt;/SPAN&gt;, to set current each viewport and use the -vplayer command...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 17:55:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5987148#M135318</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-01-13T17:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5987233#M135319</link>
      <description>Thanks Henrique, I know nothing about dictionaries so I will look into the vplayer command&lt;BR /&gt;&lt;BR /&gt;Eamon</description>
      <pubDate>Wed, 13 Jan 2016 18:25:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5987233#M135319</guid>
      <dc:creator>eamon.fleming</dc:creator>
      <dc:date>2016-01-13T18:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5988344#M135320</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/484466"&gt;@eamon.fleming&lt;/a&gt; wrote:&lt;BR /&gt;Thanks Henrique, I know nothing about dictionaries so I will look into the vplayer command&lt;BR /&gt;&lt;BR /&gt;Eamon&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome, Eamon!&lt;/P&gt;
&lt;P&gt;As a starting point, a &lt;SPAN class="hps"&gt;quick and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;dirty&lt;/SPAN&gt; 'demo'...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:demo (/ ctab ent lay lst lw name)
    (while (setq lay (tblnext "LAYER" (null lay)))
        (setq name (cdr (assoc 2 lay))
              ent  (entget (tblobjname "LAYER" name))
              lw   (cdr (assoc 370 ent))
        )
        (if (&amp;gt; lw 0.0)
            (progn
                (setq lw (/ lw 200.0))
                (if (assoc lw lst)
                    (setq lst (subst (cons lw (strcat (cdr (assoc lw lst)) "," name)) (assoc lw lst) lst))
                    (setq lst (cons (cons lw name) lst))
                )
                (setq ctab (getvar 'ctab))
                (foreach layt (layoutlist)
                    (setvar 'ctab layt)
                    (command "vplayer")
                    (foreach x lst
                        (command "LW" (car x) (cdr x) "_All")
                    )
                    (command "")
                )
                (setvar 'ctab ctab)
            )
        )
    )
    (princ)
)&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 09:15:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5988344#M135320</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-01-14T09:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5989693#M135321</link>
      <description>Thanks Henrique I will look at this tomorrow &amp;amp; see how I make out&lt;BR /&gt;&lt;BR /&gt;Eamon</description>
      <pubDate>Thu, 14 Jan 2016 20:39:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5989693#M135321</guid>
      <dc:creator>eamon.fleming</dc:creator>
      <dc:date>2016-01-14T20:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5995524#M135322</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/484466"&gt;@eamon.fleming﻿&lt;/a&gt; Glad to see your problem was resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/75977"&gt;@hmsilva﻿&lt;/a&gt; Well done!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 14:35:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5995524#M135322</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2016-01-19T14:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5996185#M135323</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/75977"&gt;@hmsilva&lt;/a&gt; Well done!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Thank you, wisp!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 19:41:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/5996185#M135323</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-01-19T19:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007097#M135324</link>
      <description>&lt;P&gt;Hi Hernrique I finally got some time to play with this demo &amp;amp; seems to be setting the VP lineweights but it sets the first layer/color to 0.024" then all the rest to 0.083" ? I am having trouble deciphering the code to see where the 0.083" is being set? is it the LW variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eamon&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:05:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007097#M135324</guid>
      <dc:creator>eamon.fleming</dc:creator>
      <dc:date>2016-01-26T17:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007146#M135325</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/484466"&gt;@eamon.fleming&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi Hernrique I finally got some time to play with this demo &amp;amp; seems to be setting the VP lineweights but it sets the first layer/color to 0.024" then all the rest to 0.083" ? I am having trouble deciphering the code to see where the 0.083" is being set? is it the LW variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eamon&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi Eamon,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;I do not have&lt;/SPAN&gt; AutoCAD in this laptop, &lt;SPAN class="hps"&gt;if&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;possible, post a sample dwg, and tonight &lt;SPAN class="hps"&gt;I'll see&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;what I can do...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;Henrique&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:30:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007146#M135325</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-01-26T17:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007163#M135326</link>
      <description>&lt;P&gt;Hi Henrique thanks for the fast responce. I have attached a simple sample drawing that I ran my program on to set the lineweights per color thenI ran demo to set the VPlineweight&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This drawing is typical of most of our templates in that the model space viewport in the layout is scaled to 1:2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a perfect world I would like demo to see what the lineweight is per layer then divide it by 2 to set the VPlineweight&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eamon&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:38:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007163#M135326</guid>
      <dc:creator>eamon.fleming</dc:creator>
      <dc:date>2016-01-26T17:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007193#M135327</link>
      <description>&lt;P&gt;Eamon,&lt;/P&gt;
&lt;P&gt;tested in&amp;nbsp;a &lt;SPAN class="hps"&gt;borrowed&lt;/SPAN&gt; &amp;nbsp;PC, &lt;SPAN class="hps alt-edited"&gt;without error....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps alt-edited"&gt;&lt;IMG title="Lineweight.PNG" alt="Lineweight.PNG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/213922i280CC4D3211A124E/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:50:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007193#M135327</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-01-26T17:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007258#M135328</link>
      <description>&lt;P&gt;Hi Henrique that is great, I notice that the lineweights are in mm, is that the problem with mine that I have them set to inches?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK I just set the lineweight units to mm &amp;amp; it works! thanks Henrique&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eamon&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 18:18:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007258#M135328</guid>
      <dc:creator>eamon.fleming</dc:creator>
      <dc:date>2016-01-26T18:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set VP Linenweight in LSP</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007442#M135329</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/484466"&gt;@eamon.fleming&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi Henrique that is great, I notice that the lineweights are in mm, is that the problem with mine that I have them set to inches?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK I just set the lineweight units to mm &amp;amp; it works! thanks Henrique&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eamon&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Eamon,&lt;/P&gt;
&lt;P&gt;sorry, but feet and inches are &lt;SPAN class="hps"&gt;not my world&lt;/SPAN&gt;, I'm a metric guy.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Glad I could help!&lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 19:47:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-vp-linenweight-in-lsp/m-p/6007442#M135329</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-01-26T19:47:57Z</dc:date>
    </item>
  </channel>
</rss>

