<?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: Layer flters in dwt in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11185307#M56640</link>
    <description>&lt;P&gt;Yes. You're right. I have problem when I export my dwg from C3D and then filters dissapear. Is it option to copy them or create using lisp?&lt;/P&gt;</description>
    <pubDate>Sun, 22 May 2022 12:04:14 GMT</pubDate>
    <dc:creator>kidznok</dc:creator>
    <dc:date>2022-05-22T12:04:14Z</dc:date>
    <item>
      <title>Layer flters in dwt</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11184637#M56637</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Is it possible to add layer filters in dwt to template file ?&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 19:49:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11184637#M56637</guid>
      <dc:creator>kidznok</dc:creator>
      <dc:date>2022-05-21T19:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Layer flters in dwt</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11184784#M56638</link>
      <description>&lt;P&gt;Yes&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 23:21:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11184784#M56638</guid>
      <dc:creator>JTBWorld</dc:creator>
      <dc:date>2022-05-21T23:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Layer flters in dwt</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11185290#M56639</link>
      <description>&lt;P&gt;&lt;SPAN&gt;dwt is the extension for a drawing template file and most of us have Layer Filters preset in them. What exactly are you asking?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 11:44:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11185290#M56639</guid>
      <dc:creator>TomBeauford</dc:creator>
      <dc:date>2022-05-22T11:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Layer flters in dwt</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11185307#M56640</link>
      <description>&lt;P&gt;Yes. You're right. I have problem when I export my dwg from C3D and then filters dissapear. Is it option to copy them or create using lisp?&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 12:04:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11185307#M56640</guid>
      <dc:creator>kidznok</dc:creator>
      <dc:date>2022-05-22T12:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Layer flters in dwt</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11185386#M56641</link>
      <description>&lt;P&gt;How do you export them and with what settings?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 13:33:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11185386#M56641</guid>
      <dc:creator>JTBWorld</dc:creator>
      <dc:date>2022-05-22T13:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Layer flters in dwt</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11186804#M56642</link>
      <description>&lt;P&gt;As&amp;nbsp;LayerSaveFilterTree &amp;amp;&amp;nbsp;LayerLoadFilterTree are Civil 3D commands they only work in Civil 3D.&lt;/P&gt;&lt;P&gt;There are lisp options for loading Layer Filters as in this example:&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;; (load "LayFilterAdd.lsp")
; ^C^C^P(or LayFilterAdd (load "LayFilterAdd.lsp"));(LayFilterAdd)
; [B][COLOR="#FF0000"]Newer versions automatically display Xref Layer Filters **Adding Xref Layer Filter names the same as them can cause serious issues**[/COLOR][/B]
; Save, close and reopen the DWT or DWG for the Filters to be put into alphabetical order.
(defun LayFilterAdd (/ collection names)
;  (load "LFD.lsp")
;  (command "C:LFD" "All*") *Layers
  (setq names (list ""))
  (if (not (vl-catch-all-error-p (setq collection (vl-catch-all-apply
    (function (lambda () (vla-item (vla-getextensiondictionary (vla-get-layers (vla-get-activedocument (vlax-get-acad-object)))) "ACAD_LAYERFILTERS")))
  ))))
;  (vlax-for item collection (setq names (cons (strcase (vla-get-name item)) names))))
  (vlax-for item collection (setq names (cons (vla-get-name item) names))))
  names 
  (or(member "CALC Points" names)(command "._-layer" "filter" "new" "property" "All" "NAME==\"V-NODE-CALC\" or NAME== \"Layer*\"" "CALC Points" "X" nil))
  (or(member "HATCH No xrefs" names)(command "._-layer" "filter" "new" "property" "All" "NAME==\"~*|*\" and NAME==\"*HATCH\"" "HATCH No xrefs" "X" nil))
  (or(member "Linetype" names)(command "._-layer" "filter" "new" "property" "All" "LINETYPE==\"~Continuous\"" "Linetype" "X" nil))
  (or(member "Lineweight" names)(command "._-layer" "filter" "new" "property" "All" "LINEWEIGHT==\"~Default\"" "Lineweight" "X" nil))
  (or(member "NCS" names)(command "._-layer" "filter" "new" "property" "All" "NAME==\"[A,C,E,L,V]-*\" or NAME== \"Layer*\"" "NCS" "X" nil))
  (or(member "NCS No xrefs" names)(command "._-layer" "filter" "new" "property" "All" "NAME==\"~*|*\" and NAME==\"[A,C,E,L,V]-*\" or NAME== \"Layer*\"" "NCS No xrefs" "X" nil))
  (or(member "No NCS" names)(command "._-layer" "filter" "new" "property" "All" "NAME==\"~[A,C,E,L,V]-*\"" "No NCS" "X" nil))
  (or(member "No NCS or xrefs" names)(command "._-layer" "filter" "new" "property" "All" "NAME==\"~*|*\" and NAME==\"~[A,C,E,L,V]-*\"" "No NCS or xrefs" "X" nil))
  (or(member "No NODE" names)(command "._-layer" "filter" "new" "property" "All" "NAME==\"~*|*\" and NAME==\"[A,C,E,L,V]-*\" and NAME==\"~*-NODE*\" or NAME== \"Layer*\"" "No NODE" "X" nil))
  (or(member "NODE" names)(command "._-layer" "filter" "new" "property" "All" "NAME==\"~*|*\" and NAME==\"[A,C,E,L,V]-*\" and NAME==\"*-NODE*\" or NAME== \"Layer*\"" "NODE" "X" nil))
  (or(member "Profile" names)(command "._-layer" "filter" "new" "property" "All" "NAME==\"C-ROAD-PROF*\" or NAME== \"Layer*\"" "Profile" "X" nil))
  (or(member "Sections" names)(command "._-layer" "filter" "new" "property" "All" "NAME==\"C-ROAD-SEC*\" or NAME== \"Layer*\"" "Sections" "X" nil))
  (or(member "Topo" names)(command "._-layer" "filter" "new" "property" "All" "NAME==\"C-TOPO*\" or NAME== \"Layer*\"" "Topo" "X" nil))
  (princ "Layer Filter Names » ")(princ names)
;  (princ "\nSave, close and reopen the DWT or DWG for the Filters to be put into alphabetical order.")
  (princ)
); function
(LayFilterAdd)

;| Lee Mac - http://www.cadtutor.net/forum/showthread.php?96276-Layer-property-filter-with-multiple-name-definitions&amp;amp;p=658278&amp;amp;viewfull=1#post658278
(command "_.-layer" "_filter" "_N" "_P" "" "NAME== \"20630*\" or NAME== \"Layer*\" or NAME== \"20632*\" or NAME== \"20633*\" or NAME== \"20634*\"" "206 - 01 - Group" "")
https://forums.augi.com/showthread.php?97438-Can-I-create-frequently-used-layer-filters-in-LISP&amp;amp;p=1350651&amp;amp;viewfull=1#post1350651
http://www.cadtutor.net/forum/showthread.php?61032-Layer-Properties-Filters
http://www.cadtutor.net/forum/showthread.php?72528-Layer-Filter-Properties  |;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 23 May 2022 11:51:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11186804#M56642</guid>
      <dc:creator>TomBeauford</dc:creator>
      <dc:date>2022-05-23T11:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Layer flters in dwt</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11186813#M56643</link>
      <description>&lt;P&gt;For importing and exporting Layer Filters take a look at:&amp;nbsp;&lt;A href="http://forums.augi.com/showthread.php?97438-Can-I-create-frequently-used-layer-filters-in-LISP&amp;amp;p=952247&amp;amp;viewfull=1#post952247" target="_blank"&gt;http://forums.augi.com/showthread.php?97438-Can-I-create-frequently-used-layer-filters-in-LISP&amp;amp;p=952247&amp;amp;viewfull=1#post952247&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 11:55:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11186813#M56643</guid>
      <dc:creator>TomBeauford</dc:creator>
      <dc:date>2022-05-23T11:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Layer flters in dwt</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11187895#M56644</link>
      <description>&lt;P&gt;Thank you very much.&amp;nbsp;&lt;BR /&gt;But I'm doing sth wrong cause it's not working.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 20:28:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11187895#M56644</guid>
      <dc:creator>kidznok</dc:creator>
      <dc:date>2022-05-23T20:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Layer flters in dwt</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11187907#M56645</link>
      <description>Show your work: share the DWT/DWG file and your LAS files that you wish to add to it.</description>
      <pubDate>Mon, 23 May 2022 20:35:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11187907#M56645</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2022-05-23T20:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Layer flters in dwt</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11189892#M56646</link>
      <description>&lt;P&gt;No way to tell what you've done wrong without knowing what you did.&lt;/P&gt;&lt;P&gt;Did you try&amp;nbsp;&lt;SPAN&gt;LayerSaveFilterTree &amp;amp;&amp;nbsp;LayerLoadFilterTree commands as you seem to be using Civil 3D?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which lisp did you try? Was it saved in the Support File Search Path? Did you load it prior to running it? Did it return an error?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:36:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layer-flters-in-dwt/m-p/11189892#M56646</guid>
      <dc:creator>TomBeauford</dc:creator>
      <dc:date>2022-05-24T15:36:53Z</dc:date>
    </item>
  </channel>
</rss>

