<?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 is it possible getobjectid with filter without open dwg with Document.Editor? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-getobjectid-with-filter-without-open-dwg-with/m-p/12070707#M8291</link>
    <description>&lt;P&gt;Hello! I am NewB for ObjectARX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mostly I do with Common.Interop so I friendly with build code with open dwg with editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I found if I use ObjectARX I can build it without using editor like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Using AcadDB As New Database(False, True)
            AcadDB.ReadDwgFile(DwgPath, FileOpenMode.OpenForReadAndAllShare, False, Nothing)

            Using Trans As Transaction = AcadDB.TransactionManager.StartTransaction
                Dim BT As BlockTable = TryCast(Trans.GetObject(AcadDB.BlockTableId, OpenMode.ForRead), BlockTable)
                Dim BTR As BlockTableRecord = TryCast(Trans.GetObject(BT(BlockTableRecord.ModelSpace), OpenMode.ForWrite), BlockTableRecord)

                For Each ObjID In BTR
                    Dim Obj As DBObject = Trans.GetObject(ObjID, OpenMode.ForWrite)

                    '....
                Next
            End Using
        End Using&lt;/LI-CODE&gt;&lt;P&gt;but I don't know How to filtering Objects such as SlectionSetFilter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanna get Object only specific Layer or ObjectType(TEXT, LINE, PLINE etc..).&lt;/P&gt;&lt;P&gt;and also want to filter crossingwindow( filter with location)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hopely there is way to filtering without open in ediotr but just open with database&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 02:38:46 GMT</pubDate>
    <dc:creator>cstotal_Autodesk</dc:creator>
    <dc:date>2023-06-30T02:38:46Z</dc:date>
    <item>
      <title>is it possible getobjectid with filter without open dwg with Document.Editor?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-getobjectid-with-filter-without-open-dwg-with/m-p/12070707#M8291</link>
      <description>&lt;P&gt;Hello! I am NewB for ObjectARX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mostly I do with Common.Interop so I friendly with build code with open dwg with editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I found if I use ObjectARX I can build it without using editor like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Using AcadDB As New Database(False, True)
            AcadDB.ReadDwgFile(DwgPath, FileOpenMode.OpenForReadAndAllShare, False, Nothing)

            Using Trans As Transaction = AcadDB.TransactionManager.StartTransaction
                Dim BT As BlockTable = TryCast(Trans.GetObject(AcadDB.BlockTableId, OpenMode.ForRead), BlockTable)
                Dim BTR As BlockTableRecord = TryCast(Trans.GetObject(BT(BlockTableRecord.ModelSpace), OpenMode.ForWrite), BlockTableRecord)

                For Each ObjID In BTR
                    Dim Obj As DBObject = Trans.GetObject(ObjID, OpenMode.ForWrite)

                    '....
                Next
            End Using
        End Using&lt;/LI-CODE&gt;&lt;P&gt;but I don't know How to filtering Objects such as SlectionSetFilter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanna get Object only specific Layer or ObjectType(TEXT, LINE, PLINE etc..).&lt;/P&gt;&lt;P&gt;and also want to filter crossingwindow( filter with location)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hopely there is way to filtering without open in ediotr but just open with database&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 02:38:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-getobjectid-with-filter-without-open-dwg-with/m-p/12070707#M8291</guid>
      <dc:creator>cstotal_Autodesk</dc:creator>
      <dc:date>2023-06-30T02:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible getobjectid with filter without open dwg with Document.Editor?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-it-possible-getobjectid-with-filter-without-open-dwg-with/m-p/12082969#M8292</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, to use editor functionality, you need to open the DWG in AutoCAD. You can not use the functionalities on side database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 08:16:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-it-possible-getobjectid-with-filter-without-open-dwg-with/m-p/12082969#M8292</guid>
      <dc:creator>Virupaksha_aithal</dc:creator>
      <dc:date>2023-07-06T08:16:49Z</dc:date>
    </item>
  </channel>
</rss>

