<?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: Find overridden dimensions but exclude checking in certain layers in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/find-overridden-dimensions-but-exclude-checking-in-certain/m-p/13371566#M1988</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The flag 4 of layer 70 dxf group stands for Locked, not Off. Off layers have a negative 62 group value. See &lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-D94802B0-8BE8-4AC9-8054-17197688AFDB" target="_blank" rel="noopener"&gt;this topic&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get the excluded layers and use them in a selection filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;  (setq excludedLayers "DEFPOINTS")
  (while (setq layername (cdr (assoc 2 (tblnext "layer" (not layername)))))
    (setq layer_data (entget (tblobjname "layer" layerName)))
    (if	(or
	  (&amp;lt; 0 (logand (cdr (assoc 70 layer_data)) 5)) ; Layer is frozen (1) or locked (4)
	  (minusp (cdr (assoc 62 layer_data))) ; Layer is turned OFF
	  (= 0 (cdr (assoc 290 layer_data))) ; Layer is set to "No Plot"
	)
      (setq excludedLayers (strcat excludedLayers "," layerName))
    )
  )

  (setq	ss (ssget "_X"
		  (list	(cons 0 "DIMENSION")
			(cons -4 "&amp;lt;NOT")
			(cons 8 excludedLayers)
			(cons -4 "NOT&amp;gt;")
		  )
	   )
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2025 16:22:57 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2025-03-14T16:22:57Z</dc:date>
    <item>
      <title>Find overridden dimensions but exclude checking in certain layers</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/find-overridden-dimensions-but-exclude-checking-in-certain/m-p/13371505#M1987</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Longtime ACAD user here, but with no lisp skills.&lt;/P&gt;&lt;P&gt;I am trying to create/modify a LISP that automatically looks in entire drawing, with a few exclusions, to find overridden dimensions and moves to _FORCED_DIMS layer so that it gets printed with different color. There is an existing FFD lisp which works well but for my purpose, I want to add exclusions so that it doesn't look into layers that are turned off and/or frozen, set to No Plot and Defpoints layer. The attached lisp partially works, but it still selects overridden dimensions from the turned off layers and from layers set to No Plot.&lt;/P&gt;&lt;P&gt;Can someone help me fix the lisp so that it doesn't select the dimensions in turned off and no plot layers ?&lt;/P&gt;&lt;P&gt;The correct lisp should exclude checking into following layer types:&lt;/P&gt;&lt;P&gt;1. Turned off layers&lt;/P&gt;&lt;P&gt;2. Frozen layers&lt;/P&gt;&lt;P&gt;3. Turned off AND Frozen layers&lt;/P&gt;&lt;P&gt;4. Layers set to No Plot (regardless of layer visibility on/off or frozen/unfrozen)&lt;/P&gt;&lt;P&gt;5. Defpoints layer&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 15:35:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/find-overridden-dimensions-but-exclude-checking-in-certain/m-p/13371505#M1987</guid>
      <dc:creator>jigar.patel43D5B</dc:creator>
      <dc:date>2025-03-14T15:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find overridden dimensions but exclude checking in certain layers</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/find-overridden-dimensions-but-exclude-checking-in-certain/m-p/13371566#M1988</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The flag 4 of layer 70 dxf group stands for Locked, not Off. Off layers have a negative 62 group value. See &lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-D94802B0-8BE8-4AC9-8054-17197688AFDB" target="_blank" rel="noopener"&gt;this topic&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get the excluded layers and use them in a selection filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;  (setq excludedLayers "DEFPOINTS")
  (while (setq layername (cdr (assoc 2 (tblnext "layer" (not layername)))))
    (setq layer_data (entget (tblobjname "layer" layerName)))
    (if	(or
	  (&amp;lt; 0 (logand (cdr (assoc 70 layer_data)) 5)) ; Layer is frozen (1) or locked (4)
	  (minusp (cdr (assoc 62 layer_data))) ; Layer is turned OFF
	  (= 0 (cdr (assoc 290 layer_data))) ; Layer is set to "No Plot"
	)
      (setq excludedLayers (strcat excludedLayers "," layerName))
    )
  )

  (setq	ss (ssget "_X"
		  (list	(cons 0 "DIMENSION")
			(cons -4 "&amp;lt;NOT")
			(cons 8 excludedLayers)
			(cons -4 "NOT&amp;gt;")
		  )
	   )
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 16:22:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/find-overridden-dimensions-but-exclude-checking-in-certain/m-p/13371566#M1988</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2025-03-14T16:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Find overridden dimensions but exclude checking in certain layers</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/find-overridden-dimensions-but-exclude-checking-in-certain/m-p/13371752#M1989</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you.&lt;/P&gt;&lt;P&gt;Got it work. For future readers, Here's the updated LISP if it helps.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This lisp will not look into layers that are either turned off, frozen, set to no plot or defpoints. It also excludes the dimensions if overridden text includes &amp;lt;&amp;gt; as they do include a true dimension value within the overridden text, for example, &amp;lt;&amp;gt;(TYP) or&amp;nbsp; %%p&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 17:55:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/find-overridden-dimensions-but-exclude-checking-in-certain/m-p/13371752#M1989</guid>
      <dc:creator>jigar.patel43D5B</dc:creator>
      <dc:date>2025-03-14T17:55:50Z</dc:date>
    </item>
  </channel>
</rss>

