<?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 layer transparency by object selection in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-layer-transparency-by-object-selection/m-p/13177793#M5677</link>
    <description>&lt;P&gt;&lt;A href="https://www.afralisp.net/" target="_blank" rel="noopener"&gt;Afralisp&lt;/A&gt; website is an excellent starting point to learn&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2024 15:44:21 GMT</pubDate>
    <dc:creator>paullimapa</dc:creator>
    <dc:date>2024-11-27T15:44:21Z</dc:date>
    <item>
      <title>Set layer transparency by object selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-layer-transparency-by-object-selection/m-p/13177737#M5675</link>
      <description>&lt;P&gt;Afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would a lisp expert out there be able to write me a routine whereby I can change the transparency level of a layer by selecting an object on that layer? I have never go round to learning list even though I've used AutoCAD since the 1990's! (If anyone can suggest a good book that teaches lisp I would appreciate that too.)&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 15:24:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-layer-transparency-by-object-selection/m-p/13177737#M5675</guid>
      <dc:creator>Justin_P_Carr</dc:creator>
      <dc:date>2024-11-27T15:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set layer transparency by object selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-layer-transparency-by-object-selection/m-p/13177770#M5676</link>
      <description>&lt;P&gt;Try this tool, not specifically for transparency, but for a wider layer setting. You can select multiple objects.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 15:32:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-layer-transparency-by-object-selection/m-p/13177770#M5676</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2024-11-27T15:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set layer transparency by object selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-layer-transparency-by-object-selection/m-p/13177793#M5677</link>
      <description>&lt;P&gt;&lt;A href="https://www.afralisp.net/" target="_blank" rel="noopener"&gt;Afralisp&lt;/A&gt; website is an excellent starting point to learn&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 15:44:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-layer-transparency-by-object-selection/m-p/13177793#M5677</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-11-27T15:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set layer transparency by object selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-layer-transparency-by-object-selection/m-p/13178024#M5678</link>
      <description>&lt;P&gt;Try this&amp;nbsp;&lt;STRONG&gt;setlyt.lsp&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; defun setlyt change layer tranparency to match with selected object
; OP:
; https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-layer-transparency-by-object-selection/m-p/13177737#M475351
(defun c:setlyt (/ en lyr tra)
  (while (not en)
    (setq en(entsel"\nSelect Object: "))
  )
  (setq en (car en))
  (setq tra(getpropertyvalue en "Transparency"))
  (setq lyr(getpropertyvalue(getpropertyvalue en "LayerID")"Name"))
  (cond
    ((= tra -2)(princ"\nCurrent Object Transparency Setting is ByBlock."))
    ((= tra -1)(princ"\nCurrent Object Transparency Setting is ByLayer."))
    (t
     (setpropertyvalue(tblobjname "LAYER" lyr)"Transparency" tra)
     (princ(strcat"\nLayer Transparency Changed to Match Object as: " (itoa tra)))
    )
  ) ; cond
  (princ) ; clean exit
) ; defun&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 17:07:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-layer-transparency-by-object-selection/m-p/13178024#M5678</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-11-27T17:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set layer transparency by object selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-layer-transparency-by-object-selection/m-p/13178862#M5679</link>
      <description>&lt;P&gt;Have a look at Kindle has some books at very reasonable prices. 4 books by&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Togores, Reinaldo N.. Advanced Programming Techniques (AutoCAD expert's Visual LISP Book 4) (Kindle Location 4). . Kindle Edition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nice thing is can copy and paste code from book.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 00:09:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-layer-transparency-by-object-selection/m-p/13178862#M5679</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-11-28T00:09:01Z</dc:date>
    </item>
  </channel>
</rss>

