<?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: Zoom Limits per layer in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7133436#M119439</link>
    <description>&lt;P&gt;Does this have anything to do with the difference in extents between objects on layers 1, 2, 3, etc? &amp;nbsp;Or are objects on those layers relatively equally spread out over model space? &amp;nbsp;Maybe you need to assign a zoom level per layer if there is empirical evidence to support such a theory. &amp;nbsp;I am trying to figure out if there is some heirarchy (sp?) that we can harness to help you in AutoCAD. &amp;nbsp;Most of us here find great fun in creating a little magic. &amp;nbsp;You could return the favor by teaching us how to make bills disappear, or how to pick winning lottery numbers, the latter being preferred.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2017 23:43:10 GMT</pubDate>
    <dc:creator>john.uhden</dc:creator>
    <dc:date>2017-06-06T23:43:10Z</dc:date>
    <item>
      <title>Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130279#M119429</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, does anyone know if it is possible to set limits of a zoom distance per layer.&amp;nbsp; So if layer 1 is on and I zoom closer layer 2 then appears, and then closer layer 3 appears and so on. As I zoom out 3 turns off then 2 at certain distances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible in AutoCAD?&amp;nbsp; This is a function that is widely used in ESRI and my boss would really like me to be able to produce this function in AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Scott Bozzoli&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 21:15:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130279#M119429</guid>
      <dc:creator>sbozzolii</dc:creator>
      <dc:date>2017-06-05T21:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130296#M119430</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as you describe your issue there is&lt;STRONG&gt; NO&lt;/STRONG&gt; way to that in AutoCAD.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 21:25:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130296#M119430</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2017-06-05T21:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130308#M119431</link>
      <description>Thank you. I knew there wasn't, but needed reassurance that I hadn't missed any new updates. Do you know if this may become possible in the future?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Scott&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jun 2017 21:30:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130308#M119431</guid>
      <dc:creator>sbozzolii</dc:creator>
      <dc:date>2017-06-05T21:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130309#M119432</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Do you know if this may become possible in the future?&lt;/STRONG&gt; &lt;/FONT&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;nobody can tell .... let's wait and see &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 21:32:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130309#M119432</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2017-06-05T21:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130337#M119433</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1250889"&gt;@sbozzolii&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't seen this feature request before and it is not possible in plain AutoCAD. With that said however, I imagine a routine could be created that when a layer is made current, a reactor could cause a zoom by a percentage or to a predefined area.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will move this thread to the customization forum so the Community might offer more suggestions or solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;Please select the &lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt; button if my post solves your issue or answers your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 21:50:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130337#M119433</guid>
      <dc:creator>john.vellek</dc:creator>
      <dc:date>2017-06-05T21:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130372#M119434</link>
      <description>&lt;P&gt;Perhaps you could make a :VLR-SysVar-Reactor to look at the viewsize variable and freeze/thaw layers based on that value. &amp;nbsp;Don't have time to remember reactors and do this now.. but one of the lisp gurus could probably whip something like this it out for you.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 22:17:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130372#M119434</guid>
      <dc:creator>Shneuph</dc:creator>
      <dc:date>2017-06-05T22:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130499#M119435</link>
      <description>&lt;P&gt;There is a feature similar to this in Civil3D called "LevelOfDetail". It doesn't do it by layer though.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 00:04:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130499#M119435</guid>
      <dc:creator>steve_carson</dc:creator>
      <dc:date>2017-06-06T00:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130628#M119436</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1250889"&gt;@sbozzolii&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;.... does anyone know if it is possible to set limits of a zoom distance per layer.&amp;nbsp; So if layer 1 is on and I zoom closer layer 2 then appears, and then closer layer 3 appears and so on. As I zoom out 3 turns off then 2 at certain distances.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
....&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That may be possible, but questions arise.&amp;nbsp; Would you want it to &lt;EM&gt;always&lt;/EM&gt; do that when you Zoom in or out?&amp;nbsp; Something like a &lt;EM&gt;reactor&lt;/EM&gt; looking at the VIEWSIZE System Variable would presumably have to work that way.&amp;nbsp; Or might you sometimes want to Zoom&amp;nbsp;in &lt;EM&gt;without&lt;/EM&gt; turning Layers on, or&amp;nbsp;out &lt;EM&gt;without&lt;/EM&gt; turning them off?&amp;nbsp; I could pretty easily imagine&amp;nbsp;a couple of&amp;nbsp;menu buttons or command definitions&amp;nbsp;that would be for Zooming in and out with this Layer-control enhancement, but you would still be left with the possibility of using regular Zoom &lt;EM&gt;without&lt;/EM&gt; any effect on Layer settings, when you want to.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 01:59:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7130628#M119436</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-06-06T01:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7133119#M119437</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;....&amp;nbsp; I could pretty easily imagine&amp;nbsp;a couple of&amp;nbsp;menu buttons or command definitions&amp;nbsp;that would be for Zooming in and out with this Layer-control enhancement, but you would still be left with the possibility of using regular Zoom &lt;EM&gt;without&lt;/EM&gt; any effect on Layer settings, when you want to.&lt;/BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A very rough &lt;EM&gt;framework&lt;/EM&gt; for such a pair of commands:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun C:ZIL (); = Zoom In with Layer effect
  (command
    "_.zoom" "11/10x"
    "_.layer" "_on"
      (cond
        ((&amp;lt; (getvar 'viewsize) 3) "2,3,4")
        ((&amp;lt; (getvar 'viewsize) 5) "2,3")
        ((&amp;lt; (getvar 'viewsize) 7) "2")
        (""); nothing if none of the above
      ); cond
      "" ; end Layer
  ); command
  (princ)
); defun

(defun C:ZOL (); = Zoom Out with Layer effect
  (command
    "_.zoom" "10/11x"
    "_.layer" "_off"
      (cond
        ((&amp;gt;= (getvar 'viewsize) 7) "2,3,4")
        ((&amp;gt;= (getvar 'viewsize) 5) "3,4")
        ((&amp;gt;= (getvar 'viewsize) 3) "4")
        ("")
      ); cond
      ""
  ); command
  (princ)
); defun&lt;/PRE&gt;
&lt;P&gt;Set up a drawing using AutoCAD's default template for a 12x9 drawing area, so the VIEWSIZE System Variable value is initially 9. &amp;nbsp;Make Layers 1 through 4 and draw some things in each, and &lt;EM&gt;turn off 2, 3 &amp;amp; 4&lt;/EM&gt; -- 1 is the Layer&amp;nbsp;that would stay on at Zoomed-out level. &amp;nbsp;As you use ZIL successively to Zoom &lt;EM&gt;in&lt;/EM&gt;, when the Zoom level passes the 7-unit VIEWSIZE, Layer 2 is turned on; when it passes 5, 3 is turned on also; etc. &amp;nbsp;[I included the multiple Layer names in case you might start at some other-than-9 VIEWSIZE value -- by whatever means and whatever starting point you are coming from, when you get in to the last stage, it turns all three Layers on, not just the "innermost" one, otherwise you could get some peculiar combinations.] &amp;nbsp;Then ZOL-ing back &lt;EM&gt;out&lt;/EM&gt;, the Layers are turned back off in reverse order as the thresholds are passed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They&amp;nbsp;work only in Zooming in/out &lt;EM&gt;by scale factor&lt;/EM&gt;, about the center of view, not with Window, etc., and the Layer changes happen&amp;nbsp;only &lt;EM&gt;when using these commands&lt;/EM&gt;, not in [for example] mouse-wheel Zooming. &amp;nbsp;So you can Zoom however you like &lt;EM&gt;without&lt;/EM&gt; affecting Layer settings when you want to, by using the mouse wheel or the regular Zoom command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would have to play around with the percentage&amp;nbsp;of Zooming in/out [I made them reciprocal and used fractions so they'd be &lt;EM&gt;exactly&lt;/EM&gt; reciprocal, so if you use some ZIL's and then the same number of&amp;nbsp;ZOL's, it takes you back to the same&amp;nbsp;Zoom level], and the threshold values of VIEWSIZE at which changes are made, and of course the Layer names, and &lt;EM&gt;how many&lt;/EM&gt; Layers you want affected, and so on. &amp;nbsp;With appropriate Drawing Limits, it could be made to judge proportionally to them for &lt;EM&gt;any&lt;/EM&gt; size drawing, rather than being purpose-built for a specific drawing size as these are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not the ultimate solution yet, but at least it demonstrates an approach.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:41:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7133119#M119437</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-06-06T20:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7133145#M119438</link>
      <description>Thank you. So far this has been the best advice. I will try this tomorrow when I get back in the office. I wonder if this can someday be a quick AutoCAD command&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:54:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7133145#M119438</guid>
      <dc:creator>sbozzolii</dc:creator>
      <dc:date>2017-06-06T20:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7133436#M119439</link>
      <description>&lt;P&gt;Does this have anything to do with the difference in extents between objects on layers 1, 2, 3, etc? &amp;nbsp;Or are objects on those layers relatively equally spread out over model space? &amp;nbsp;Maybe you need to assign a zoom level per layer if there is empirical evidence to support such a theory. &amp;nbsp;I am trying to figure out if there is some heirarchy (sp?) that we can harness to help you in AutoCAD. &amp;nbsp;Most of us here find great fun in creating a little magic. &amp;nbsp;You could return the favor by teaching us how to make bills disappear, or how to pick winning lottery numbers, the latter being preferred.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 23:43:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7133436#M119439</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-06-06T23:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7133584#M119440</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;Maybe you need to assign a zoom level per layer if there is empirical evidence to support such a theory. &amp;nbsp;I am trying to figure out if there is some heirarchy (sp?) that we can harness to help you in AutoCAD.&amp;nbsp;&amp;nbsp;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm imagining they're talking about a situation&amp;nbsp;similar to&amp;nbsp;this Architectural example, and what I imagine that LevelOfDetail feature in Civil3D [mentioned by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/508259"&gt;@steve_carson&lt;/a&gt;&amp;nbsp;in Post 7] must be like:&amp;nbsp; Layer 1 has the outermost face lines of walls, Layer 2 has the stud lines inside (the back side of the drywall), Layer 3 has&amp;nbsp;insulation batting squiggles, Layer 4 has the actual studs themselves.&amp;nbsp; So when Zoomed out far enough, all you see are the outermost wall-face lines, because the detail of the rest of it would be lost at too small a viewing&amp;nbsp;scale.&amp;nbsp; When you Zoom in a little closer, you see the thickness of the drywall, go in further and you see the insulation indication, go way in and you see the individual studs.&amp;nbsp; Back out and successively the various levels of too-much-detail go away again.&amp;nbsp; &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1250889"&gt;@sbozzolii&lt;/a&gt;, is that a reasonable analogy?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 02:10:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7133584#M119440</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-06-07T02:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7135215#M119441</link>
      <description>&lt;P&gt;That seems like a very good analogy to me, though I am no architect. &amp;nbsp;I guess what I was thinking of was tying a zoom level to a layer state, then using a reactor to read an xrecord or xdata to perform the zoom. &amp;nbsp;Wait, maybe I have it backwards... if he zooms in, then more layers are thawed and vice versa. &amp;nbsp;That would be fired by viewsize, as you pointed out, and there would have to be a relationship between a viewsize and a layer state. &amp;nbsp;That could cause a lot of regens for someone like myself who uses the mouse wheel a lot. &amp;nbsp;But I guess it would still be quite a benefit to the OP compared to manually recalling any number of layer states. &amp;nbsp;I am presuming that such interaction would be confined to model space only (tilemode = 1). &amp;nbsp;He could then use my tilemode reactor when switching to any other layout tab where vplayer would control visibility.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:02:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7135215#M119441</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-06-07T15:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom Limits per layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7135220#M119442</link>
      <description>&lt;P&gt;Aslo have seen it in other CADs.&lt;/P&gt;
&lt;P&gt;As much as I dislike reactors,&lt;/P&gt;
&lt;P&gt;your approach will eventually occur,&lt;/P&gt;
&lt;P&gt;then be incorporated into the core.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yet another parameter for layer&amp;nbsp; 'limits'&lt;/P&gt;
&lt;P&gt;could be the extents, or bounding box&lt;/P&gt;
&lt;P&gt;of the entities on each layer.&lt;/P&gt;
&lt;P&gt;Yet what I saw may have been simply&lt;/P&gt;
&lt;P&gt;features assigned to each entity; or&lt;/P&gt;
&lt;P&gt;by the actual function doing the zooming, like Kent's.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either way, viewsize changed what type was seen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:03:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/zoom-limits-per-layer/m-p/7135220#M119442</guid>
      <dc:creator>stevor</dc:creator>
      <dc:date>2017-06-07T15:03:41Z</dc:date>
    </item>
  </channel>
</rss>

