<?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 Determine if document contains 3D elements in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/determine-if-document-contains-3d-elements/m-p/2879802#M62293</link>
    <description>&lt;P&gt;Is there an API method or property&amp;nbsp;that I can use to determine if an AutoCAD document has 3D elements?&amp;nbsp; I tried looking for a flag when the message 'Loading Modeler DLLs' is shown as that seems to be a fairly reliable indicator, but found nothing.&amp;nbsp; I'd prefer not to traverse the database elements, if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using:&lt;/P&gt;&lt;P&gt;AutoCAD 2011&lt;/P&gt;&lt;P&gt;Visual Studio 2008 SP1&lt;/P&gt;&lt;P&gt;Project is in VB.NET Using .NET 3.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2011 15:21:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-01-13T15:21:04Z</dc:date>
    <item>
      <title>Determine if document contains 3D elements</title>
      <link>https://forums.autodesk.com/t5/net-forum/determine-if-document-contains-3d-elements/m-p/2879802#M62293</link>
      <description>&lt;P&gt;Is there an API method or property&amp;nbsp;that I can use to determine if an AutoCAD document has 3D elements?&amp;nbsp; I tried looking for a flag when the message 'Loading Modeler DLLs' is shown as that seems to be a fairly reliable indicator, but found nothing.&amp;nbsp; I'd prefer not to traverse the database elements, if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using:&lt;/P&gt;&lt;P&gt;AutoCAD 2011&lt;/P&gt;&lt;P&gt;Visual Studio 2008 SP1&lt;/P&gt;&lt;P&gt;Project is in VB.NET Using .NET 3.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2011 15:21:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/determine-if-document-contains-3d-elements/m-p/2879802#M62293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-13T15:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if document contains 3D elements</title>
      <link>https://forums.autodesk.com/t5/net-forum/determine-if-document-contains-3d-elements/m-p/2881958#M62294</link>
      <description>&lt;P&gt;Due to the deafening sound of crickets I've heard from this post, I'd thought I'd supply the solution I came up with.&amp;nbsp; This may not be the best way, but it seems to work reliably.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim oARX_Objects As Object
            Dim sARX_Objects() As String
            Dim bDocIs3D As Boolean = False
            'Get all loaded modules. Returns a single object that hides an array of strings
            oARX_Objects = AcadMan.ListArx()
            'Convert the object into a usable  string array
            sARX_Objects = CType(oARX_Objects, String())

            'Search for key DLL's that indicate a 3D document.
            For Each sARX_Name As String In sARX_Objects
                If sARX_Name.ToLower = "aecmodeler60.dbx" Then
                    bDocIs3D = True
                    Exit For
                End If
                If sARX_Name.ToLower = "aecsolidmodeler.dbx" Then
                    bDocIs3D = True
                    Exit For
                End If
                If sARX_Name.ToLower = "acsceneoe.dbx" Then
                    bDocIs3D = True
                    Exit For
                End If
            Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2011 20:37:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/determine-if-document-contains-3d-elements/m-p/2881958#M62294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-14T20:37:26Z</dc:date>
    </item>
  </channel>
</rss>

