<?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: true name of dynamic block? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/true-name-of-dynamic-block/m-p/1683743#M81309</link>
    <description>If the IsDynamicBlock property of the BlockReference returns&lt;BR /&gt;
true, then you use the DynamicBlockTableRecord property to&lt;BR /&gt;
get the id of the BlockTableRecord, open that and get its name.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;MANFREDM&gt; wrote in message news:5214891@discussion.autodesk.com...&lt;BR /&gt;
I want to use the blockname of a given id. With normal blocks it works fine, but dynamic blocks return an anonymous name like *Uxxx. How can i find the true name of the dynamic block?&lt;BR /&gt;
Dim Btr As BlockTableRecord = CType(ta.GetObject(curBlockRef.BlockTableRecord.ConvertToRedirectedId, OpenMode.ForRead, False), BlockTableRecord)&lt;BR /&gt;
Dim ProductNo As String = Btr.Name&lt;/MANFREDM&gt;</description>
    <pubDate>Thu, 22 Jun 2006 19:04:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-06-22T19:04:34Z</dc:date>
    <item>
      <title>true name of dynamic block?</title>
      <link>https://forums.autodesk.com/t5/net-forum/true-name-of-dynamic-block/m-p/1683740#M81306</link>
      <description>I want to use the blockname of a given id. With normal blocks it works fine, but dynamic blocks return an anonymous name like *Uxxx. How can i find the true name of the dynamic block?&lt;BR /&gt;
Dim Btr As BlockTableRecord = CType(ta.GetObject(curBlockRef.BlockTableRecord.ConvertToRedirectedId, OpenMode.ForRead, False), BlockTableRecord)&lt;BR /&gt;
Dim ProductNo As String = Btr.Name</description>
      <pubDate>Thu, 22 Jun 2006 08:54:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/true-name-of-dynamic-block/m-p/1683740#M81306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-22T08:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: true name of dynamic block?</title>
      <link>https://forums.autodesk.com/t5/net-forum/true-name-of-dynamic-block/m-p/1683741#M81307</link>
      <description>EffectiveName property?&lt;BR /&gt;
&lt;BR /&gt;
&lt;MANFREDM&gt; wrote in message news:5214891@discussion.autodesk.com...&lt;BR /&gt;
I want to use the blockname of a given id. With normal blocks it works fine, &lt;BR /&gt;
but dynamic blocks return an anonymous name like *Uxxx. How can i find the &lt;BR /&gt;
true name of the dynamic block?&lt;BR /&gt;
Dim Btr As BlockTableRecord = &lt;BR /&gt;
CType(ta.GetObject(curBlockRef.BlockTableRecord.ConvertToRedirectedId, &lt;BR /&gt;
OpenMode.ForRead, False), BlockTableRecord)&lt;BR /&gt;
Dim ProductNo As String = Btr.Name&lt;/MANFREDM&gt;</description>
      <pubDate>Thu, 22 Jun 2006 11:02:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/true-name-of-dynamic-block/m-p/1683741#M81307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-22T11:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: true name of dynamic block?</title>
      <link>https://forums.autodesk.com/t5/net-forum/true-name-of-dynamic-block/m-p/1683742#M81308</link>
      <description>Thanks, but EffectiveName works in VBA only.</description>
      <pubDate>Thu, 22 Jun 2006 12:50:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/true-name-of-dynamic-block/m-p/1683742#M81308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-22T12:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: true name of dynamic block?</title>
      <link>https://forums.autodesk.com/t5/net-forum/true-name-of-dynamic-block/m-p/1683743#M81309</link>
      <description>If the IsDynamicBlock property of the BlockReference returns&lt;BR /&gt;
true, then you use the DynamicBlockTableRecord property to&lt;BR /&gt;
get the id of the BlockTableRecord, open that and get its name.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;MANFREDM&gt; wrote in message news:5214891@discussion.autodesk.com...&lt;BR /&gt;
I want to use the blockname of a given id. With normal blocks it works fine, but dynamic blocks return an anonymous name like *Uxxx. How can i find the true name of the dynamic block?&lt;BR /&gt;
Dim Btr As BlockTableRecord = CType(ta.GetObject(curBlockRef.BlockTableRecord.ConvertToRedirectedId, OpenMode.ForRead, False), BlockTableRecord)&lt;BR /&gt;
Dim ProductNo As String = Btr.Name&lt;/MANFREDM&gt;</description>
      <pubDate>Thu, 22 Jun 2006 19:04:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/true-name-of-dynamic-block/m-p/1683743#M81309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-22T19:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: true name of dynamic block?</title>
      <link>https://forums.autodesk.com/t5/net-forum/true-name-of-dynamic-block/m-p/1683744#M81310</link>
      <description>Thanks a lot Tony, it works!&lt;BR /&gt;
&lt;BR /&gt;
I have a little problem with the property IsDynamicBlock, because it sometimes was false though it was a dynamic block, so i use the anonymous blockname.&lt;BR /&gt;
For other users i complete my code:&lt;BR /&gt;
&lt;BR /&gt;
Dim Btr As BlockTableRecord = CType(ta.GetObject(curBlockRef.BlockTableRecord.ConvertToRedirectedId, OpenMode.ForRead, False), BlockTableRecord)&lt;BR /&gt;
Dim ProductNo As String&lt;BR /&gt;
If Left(Btr.Name, 1) = "*U" Then&lt;BR /&gt;
     Dim dynObjectID As ObjectId  =                  curBlockRef.DynamicBlockTableRecord&lt;BR /&gt;
     ProductNo = Left(Btr.Name, Len(Btr.Name) - 1)&lt;BR /&gt;
     Dim dynBtr As BlockTableRecord = CType(ta.GetObject(dynObjectID, OpenMode.ForRead, False), BlockTableRecord)&lt;BR /&gt;
     ProductNo = dynBtr.Name&lt;BR /&gt;
Else&lt;BR /&gt;
     ProductNo = Btr.Name&lt;BR /&gt;
End If</description>
      <pubDate>Sun, 25 Jun 2006 10:32:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/true-name-of-dynamic-block/m-p/1683744#M81310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-25T10:32:08Z</dc:date>
    </item>
  </channel>
</rss>

