<?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: Setting Viewport Layer Overrides for XREFs in Drawing Templates - How? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4819167#M347008</link>
    <description>&lt;P&gt;Thanks for that - much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Small wrinkle though. Our layer names have spaces in them e.g. "Design Sewer" and so using this command we have to put the quotation marks around layers which means we can't enter multiple layers names at once like your example has.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command works fine for normal single "word" layer names - but when you have to use quotation marks you can only enter one layer at a time - bug in AutoCAD?? Either way it only means I have run through the command twice instead of once like your example shows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Feb 2014 21:58:49 GMT</pubDate>
    <dc:creator>nbawden</dc:creator>
    <dc:date>2014-02-16T21:58:49Z</dc:date>
    <item>
      <title>Setting Viewport Layer Overrides for XREFs in Drawing Templates - How?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4794669#M347003</link>
      <description>&lt;P&gt;Could someone please advise on the best way to set &amp;amp; &amp;nbsp;maintain viewport layer overrides for XREF layers in a template?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default our template does not have any XREFs attached but we will, in 90% of projects, be adding XREFs from variable locations internally that are given the same XREF names in the drawing (e.g. source filneame is different but XREFs are given constant names "X Layout", "X Design" etc). We want to be be able to define the viewport layer overrides (freezwe\thaw, colour, lineweight) either in the template without the XREFs (or dummy equivalents) already attached or via applied fater the XREFs are attached via a very quick process (e.g. Layer States??).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best way to achive this outcome?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 03:19:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4794669#M347003</guid>
      <dc:creator>nbawden</dc:creator>
      <dc:date>2014-02-05T03:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Viewport Layer Overrides for XREFs in Drawing Templates - How?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4794977#M347004</link>
      <description>I don't think it's possible because of the xref naming convention in layer properties manager. Maybe someone has a lisp routine for this?????</description>
      <pubDate>Wed, 05 Feb 2014 06:56:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4794977#M347004</guid>
      <dc:creator>jporter</dc:creator>
      <dc:date>2014-02-05T06:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Viewport Layer Overrides for XREFs in Drawing Templates - How?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4797091#M347005</link>
      <description>&lt;P&gt;Is there consistency between the source xref layer declarations and the destination file layers?&lt;/P&gt;
&lt;P&gt;A LISP or script or macro may help using these guidelines:&lt;/P&gt;
&lt;P&gt;The xref uses a "|" as part of the layer name regardless of the file name, or the xref name given in the destination file.&lt;/P&gt;
&lt;P&gt;By mapping the destination layer's state in the viewport, an equivalent can be had for the xref.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;F1wall is a layer found in the destination file.&lt;/P&gt;
&lt;P&gt;*|F1wall would be the equivalent for the xref.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;^C^Cvplayer;t;F1wall,*|F1wall;;;&lt;/P&gt;
&lt;P&gt;conceptual.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 23:43:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4797091#M347005</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2014-02-05T23:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Viewport Layer Overrides for XREFs in Drawing Templates - How?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4797097#M347006</link>
      <description>&lt;P&gt;Yes there is a conistency in layer names. So lisp is the answer?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 23:47:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4797097#M347006</guid>
      <dc:creator>nbawden</dc:creator>
      <dc:date>2014-02-05T23:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Viewport Layer Overrides for XREFs in Drawing Templates - How?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4799947#M347007</link>
      <description>&lt;P&gt;The example I provided is a macro that can be populated anywhere in any of the on screen tools.&lt;/P&gt;
&lt;P&gt;Open the CUI: command CUI.&lt;/P&gt;
&lt;P&gt;Bottom left pane is the command list. Create a command and fill in the macro part.&lt;/P&gt;
&lt;P&gt;Repeat as needed.&lt;/P&gt;
&lt;P&gt;The top left pane is the tree. Create a sub-category by right-clicking on a tree item and select "New Menu".&lt;/P&gt;
&lt;P&gt;Now drag-hold-and-drop your new command from the command list into the new sub-category.&lt;/P&gt;
&lt;P&gt;Test your work.&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/81447i1D5A7DA15D5CA6E2/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="52f3c297.gif" title="52f3c297.gif" align="middle" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2014 23:22:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4799947#M347007</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2014-02-06T23:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Viewport Layer Overrides for XREFs in Drawing Templates - How?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4819167#M347008</link>
      <description>&lt;P&gt;Thanks for that - much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Small wrinkle though. Our layer names have spaces in them e.g. "Design Sewer" and so using this command we have to put the quotation marks around layers which means we can't enter multiple layers names at once like your example has.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command works fine for normal single "word" layer names - but when you have to use quotation marks you can only enter one layer at a time - bug in AutoCAD?? Either way it only means I have run through the command twice instead of once like your example shows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2014 21:58:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/setting-viewport-layer-overrides-for-xrefs-in-drawing-templates/m-p/4819167#M347008</guid>
      <dc:creator>nbawden</dc:creator>
      <dc:date>2014-02-16T21:58:49Z</dc:date>
    </item>
  </channel>
</rss>

