<?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: The layer properties has been set to visible, but layers still can't see in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654998#M52970</link>
    <description>&lt;P&gt;I'm using AutoCAD 2008，and i have not find the Autodesk.AutoCAD.Internal.LayerUtilities class！&lt;/P&gt;</description>
    <pubDate>Thu, 11 Oct 2012 07:50:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-10-11T07:50:24Z</dc:date>
    <item>
      <title>The layer properties has been set to visible, but layers still can't see</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3653314#M52963</link>
      <description>&lt;P&gt;I have a problem！ When I&amp;nbsp; &amp;nbsp;load a dwg file, i&amp;nbsp; set&amp;nbsp; all&amp;nbsp;invisible layers&amp;nbsp; to &amp;nbsp;visible！The layer properties has been set to visible, but the entities on&amp;nbsp;&amp;nbsp; those invisible layers still can't see。 After that I change the layout，just change the 'model' to 'layout1' Then change&amp;nbsp; back to 'model' .&amp;nbsp;All entities is visible!&lt;/P&gt;&lt;P&gt;I mean what's the matter with that and&amp;nbsp; how I can Solve the problem？&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private void AddNewLayer(Document doc)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (doc.IsReadOnly)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (DocumentLock m_DocumentLock = doc.LockDocument())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string name = doc.Name;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (Transaction tr = doc.Database.TransactionManager.StartTransaction())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LayerTable lt = (LayerTable)tr.GetObject(doc.Database.LayerTableId, OpenMode.ForWrite);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SymbolTableEnumerator symbolTableEnumerator = lt.GetEnumerator();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LayerTableRecord activerecord = null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (symbolTableEnumerator.MoveNext() == true)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ObjectId objEntr = (ObjectId)symbolTableEnumerator.Current;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LayerTableRecord ltr = (LayerTableRecord)tr.GetObject(objEntr, OpenMode.ForWrite);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ltr.IsOff)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ltr.IsOff = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tr.Commit();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 09:07:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3653314#M52963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-10T09:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: The layer properties has been set to visible, but layers still can't see</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3653854#M52964</link>
      <description>&lt;P&gt;After commit transaction, call&amp;nbsp;doc.Editor.UpdateScreen() to update their visibility, doc.Editor.Regen() also updates visibility but slower as it will regenerate all entities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From &lt;A target="_self" href="http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer%27s%20Guide/index.html?url=WS1a9193826455f5ff2566ffd511ff6f8c7ca-42db.htm,topicNumber=d0e7586"&gt;AutoCAD .NET documentation&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;"The &lt;STRONG&gt;UpdateScreen&lt;/STRONG&gt; method redraws the application or document windows. The &lt;STRONG&gt;Regen&lt;/STRONG&gt; method regenerates the graphical objects in the drawing window, and recomputes the screen coordinates and view resolution for all objects. It also re-indexes the drawing database for optimum display and object selection performance."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Khoa&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 15:00:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3653854#M52964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-10T15:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: The layer properties has been set to visible, but layers still can't see</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654456#M52965</link>
      <description>&lt;P&gt;First, You should be using the TransactionManager of the Document, rather than it's Database (yes, there is a difference). &amp;nbsp;For updating entities on the affected layers, you can call the RegenLayers() method of the Autodesk.AutoCAD.Internal.LayerUtilities class, and pass it the ObjectIds of the layers you want to regenerate which can be faster than a full regen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UpdateScreen() will not help here, BTW.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 20:02:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654456#M52965</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2012-10-10T20:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: The layer properties has been set to visible, but layers still can't see</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654700#M52966</link>
      <description>&lt;P&gt;Thanks for all! I try it ,but&amp;nbsp;i am sorry&amp;nbsp;it is not work.&lt;/P&gt;&lt;P&gt;When I change the mode now, it is also not work. However I click the 'Freezing new view' button on layer&amp;nbsp; edit dialog then apply it, It is work now.It makes me very confusing!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 23:44:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654700#M52966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-10T23:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: The layer properties has been set to visible, but layers still can't see</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654812#M52967</link>
      <description>&lt;P&gt;I just input 'regen' command in editor,but it is not work !&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2012 02:23:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654812#M52967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-11T02:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: The layer properties has been set to visible, but layers still can't see</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654896#M52968</link>
      <description>&lt;P&gt;Try this command:&lt;/P&gt;&lt;P&gt;&amp;lt;DllImport("acad.exe", EntryPoint:="&lt;A target="_blank" href="mailto:?applyCurDwgLayerTableChanges@@YA?AW4ErrorStatus@Acad@@XZ"&gt;?applyCurDwgLayerTableChanges@@YA?AW4ErrorStatus@Acad@@XZ&lt;/A&gt;")&amp;gt; _ Private Shared Sub applyCurDwgLayerTableChanges() End Sub&lt;/P&gt;&lt;P&gt;then at the end of your directive add this line:&lt;/P&gt;&lt;P&gt;applyCurDwgLayerTableChanges()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="arial,helvetica,sans-serif"&gt;~'J'~&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2012 05:43:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654896#M52968</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2012-10-11T05:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: The layer properties has been set to visible, but layers still can't see</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654960#M52969</link>
      <description>&lt;P&gt;I use your method it is also not work。It get the error message of &amp;nbsp;‘can not &amp;nbsp;find '?' entrypoint’&lt;/P&gt;&lt;P&gt;Mybe I find the reason，When I Execute the above&amp;nbsp;AddNewLayer function， doc is not the activeDocument because it is starting。 So when I execute the doc.Editor.UpdateScreen() It is also get the error.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2012 07:24:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654960#M52969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-11T07:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: The layer properties has been set to visible, but layers still can't see</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654998#M52970</link>
      <description>&lt;P&gt;I'm using AutoCAD 2008，and i have not find the Autodesk.AutoCAD.Internal.LayerUtilities class！&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2012 07:50:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3654998#M52970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-11T07:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: The layer properties has been set to visible, but layers still can't see</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3655036#M52971</link>
      <description>&lt;P&gt;Thanks for all replies！ I have solved my problem。 All of this is&amp;nbsp;that the doc is&amp;nbsp;not the activedocument!&amp;nbsp;When I Set DocuemntCollection.ActiveDocument=Doc&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2012 08:51:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3655036#M52971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-11T08:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: The layer properties has been set to visible, but layers still can't see</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3658662#M52972</link>
      <description>&lt;P&gt;The document you're modifying must be the active document or all bets are off&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2012 02:52:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3658662#M52972</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2012-10-14T02:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: The layer properties has been set to visible, but layers still can't see</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3658666#M52973</link>
      <description>&lt;P&gt;I use custom command!&lt;/P&gt;&lt;P&gt;I find that when I excute the opendwg funtion of &amp;nbsp;documentcollection&lt;/P&gt;&lt;P&gt;it is different of these two function。&lt;/P&gt;&lt;P&gt;[CommandMethod("openDwg",CommandFlags.Session)]&lt;/P&gt;&lt;P&gt;public void OpenDwg(string fileName) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Document activeDocument = Application.DocumentManager.Open(fileName,false,string.Empty);&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;///after&amp;nbsp;this&amp;nbsp;function&amp;nbsp;&amp;nbsp;activeDocument is the activedocument&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;//if i remove the commandflags&lt;/P&gt;&lt;P&gt;[CommandMethod("openDwg")]&lt;/P&gt;&lt;P&gt;public void OpenDwg(string fileName)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Document activeDocument = Application.DocumentManager.Open(fileName,false,string.Empty);&amp;nbsp;&lt;/P&gt;&lt;P&gt;///after this function&amp;nbsp; activeDocument is &amp;nbsp;‘drawing1’&lt;/P&gt;&lt;P&gt;///&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2012 03:11:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3658666#M52973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-14T03:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: The layer properties has been set to visible, but layers still can't see</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3658848#M52974</link>
      <description>&lt;P&gt;Then try again these both commands with adding this line,&lt;/P&gt;&lt;P&gt;but keep the CommandFlags still the same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Application.DocumentManager.DocumentActivationEnabled = true;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="arial,helvetica,sans-serif"&gt;~'J'~&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2012 16:39:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-layer-properties-has-been-set-to-visible-but-layers-still/m-p/3658848#M52974</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2012-10-14T16:39:18Z</dc:date>
    </item>
  </channel>
</rss>

