<?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 Iterating through Xref in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/iterating-through-xref/m-p/9349846#M20208</link>
    <description>&lt;P&gt;Any downsides or things I need to watch out for when iterating through an xref like this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var xdb = bd.GetXrefDatabase(false);

                                if (xdb != null)

                                {
                                    using (Transaction xrt = xdb.TransactionManager.StartTransaction())
                                    {
                                        BlockTableRecord btRecord = (BlockTableRecord)xrt.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(xdb), OpenMode.ForRead);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 29 Feb 2020 02:19:22 GMT</pubDate>
    <dc:creator>brianchapmandesign</dc:creator>
    <dc:date>2020-02-29T02:19:22Z</dc:date>
    <item>
      <title>Iterating through Xref</title>
      <link>https://forums.autodesk.com/t5/net-forum/iterating-through-xref/m-p/9349846#M20208</link>
      <description>&lt;P&gt;Any downsides or things I need to watch out for when iterating through an xref like this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var xdb = bd.GetXrefDatabase(false);

                                if (xdb != null)

                                {
                                    using (Transaction xrt = xdb.TransactionManager.StartTransaction())
                                    {
                                        BlockTableRecord btRecord = (BlockTableRecord)xrt.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(xdb), OpenMode.ForRead);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Feb 2020 02:19:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/iterating-through-xref/m-p/9349846#M20208</guid>
      <dc:creator>brianchapmandesign</dc:creator>
      <dc:date>2020-02-29T02:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Iterating through Xref</title>
      <link>https://forums.autodesk.com/t5/net-forum/iterating-through-xref/m-p/9349990#M20209</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'd just wrap the xref database in a using statement to insure the database is disposed when you've done with it.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;using (var xdb = bd.GetXrefDatabase(false))
{
    // ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Feb 2020 07:27:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/iterating-through-xref/m-p/9349990#M20209</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-02-29T07:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Iterating through Xref</title>
      <link>https://forums.autodesk.com/t5/net-forum/iterating-through-xref/m-p/9350037#M20210</link>
      <description>&lt;P&gt;Thank you sincerely Gilles&lt;/P&gt;</description>
      <pubDate>Sat, 29 Feb 2020 09:41:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/iterating-through-xref/m-p/9350037#M20210</guid>
      <dc:creator>brianchapmandesign</dc:creator>
      <dc:date>2020-02-29T09:41:55Z</dc:date>
    </item>
  </channel>
</rss>

