<?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>AutoCAD综合 - 中文论坛中的主题 回复： .NET如何获取块参照的真实名称</title>
    <link>https://forums.autodesk.com/t5/autocad-zong-he-zhong-wen-lun-tan/net-ru-he-huo-qu-kuai-can-zhao-de-zhen-shi-ming-cheng/m-p/10409619#M5465</link>
    <description>&lt;P&gt;您好！太棒了，很高兴您自己解决了这个问题并无私分享您的解决方法，我代表社区其他用户感谢您！&lt;span class="lia-unicode-emoji" title=":竖起大拇指:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 02:08:38 GMT</pubDate>
    <dc:creator>lynn_zhang</dc:creator>
    <dc:date>2021-06-22T02:08:38Z</dc:date>
    <item>
      <title>.NET如何获取块参照的真实名称</title>
      <link>https://forums.autodesk.com/t5/autocad-zong-he-zhong-wen-lun-tan/net-ru-he-huo-qu-kuai-can-zhao-de-zhen-shi-ming-cheng/m-p/10406498#M5463</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;我自定义了一个带参数的块，插入图形之后想利用.NET获取其名称，即下图中所示信息 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="属性" style="width: 200px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/932459iE535364F24E66374/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shuxing.png" alt="属性" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;属性&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;在默认的块参数下，此时查看Database中Black Table信息如下，且*Model_Space中的块参照名称正常，如下图 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Database_01" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/932461i98B854D59F991483/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Database.png" alt="Database_01" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Database_01&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ModelSpace_01" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/932462iA4C28854694488D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Block Table.png" alt="ModelSpace_01" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ModelSpace_01&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;但是在更改块参照的自定义属性之后，查看Database，发现它的BlockTable会自动生成一个新的块表记录，同时Model_Space中刚才插入的块名称会自动变成这个新的块表记录名称，而在图形特性界面查看名称依旧显示正常。&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="更改自定义参数后的特性界面" style="width: 200px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/932463i59204675E505B71C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shuxing-2.png" alt="更改自定义参数后的特性界面" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;更改自定义参数后的特性界面&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="更改参数后Database" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/932465iB841AFF63BAC118B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Database-2.png" alt="更改参数后Database" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;更改参数后Database&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="更改参数后BlockTable" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/932466iA13D8EC870D15FCD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Block Table-2.png" alt="更改参数后BlockTable" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;更改参数后BlockTable&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;调用BlockReference.Name在默认的参数下可以获取的正确的名称，但是更改参数后获取到的是后面新生成的块表记录的名称&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;我想在参数无论如何变化的情况下都能获取块参照的特性界面的名称，应该如何实现？&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 02:01:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-zong-he-zhong-wen-lun-tan/net-ru-he-huo-qu-kuai-can-zhao-de-zhen-shi-ming-cheng/m-p/10406498#M5463</guid>
      <dc:creator>ouyangzhikui</dc:creator>
      <dc:date>2021-06-21T02:01:39Z</dc:date>
    </item>
    <item>
      <title>回复： .NET如何获取块参照的真实名称</title>
      <link>https://forums.autodesk.com/t5/autocad-zong-he-zhong-wen-lun-tan/net-ru-he-huo-qu-kuai-can-zhao-de-zhen-shi-ming-cheng/m-p/10409581#M5464</link>
      <description>&lt;P&gt;当前问题本人经过尝试发现可以通过以下方法实现：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OK.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/932864iCAACC70ABD905C04/image-size/large?v=v2&amp;amp;px=999" role="button" title="OK.png" alt="OK.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;动态块不应使用BlockReference.Name直接获取块名称；&lt;/P&gt;&lt;P&gt;需要先使用DynamicBlockTableRecord获取块参照的对应动态块表记录，然后获取该块表记录的Name即可。&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 01:33:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-zong-he-zhong-wen-lun-tan/net-ru-he-huo-qu-kuai-can-zhao-de-zhen-shi-ming-cheng/m-p/10409581#M5464</guid>
      <dc:creator>ouyangzhikui</dc:creator>
      <dc:date>2021-06-22T01:33:35Z</dc:date>
    </item>
    <item>
      <title>回复： .NET如何获取块参照的真实名称</title>
      <link>https://forums.autodesk.com/t5/autocad-zong-he-zhong-wen-lun-tan/net-ru-he-huo-qu-kuai-can-zhao-de-zhen-shi-ming-cheng/m-p/10409619#M5465</link>
      <description>&lt;P&gt;您好！太棒了，很高兴您自己解决了这个问题并无私分享您的解决方法，我代表社区其他用户感谢您！&lt;span class="lia-unicode-emoji" title=":竖起大拇指:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 02:08:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-zong-he-zhong-wen-lun-tan/net-ru-he-huo-qu-kuai-can-zhao-de-zhen-shi-ming-cheng/m-p/10409619#M5465</guid>
      <dc:creator>lynn_zhang</dc:creator>
      <dc:date>2021-06-22T02:08:38Z</dc:date>
    </item>
    <item>
      <title>回复： .NET如何获取块参照的真实名称</title>
      <link>https://forums.autodesk.com/t5/autocad-zong-he-zhong-wen-lun-tan/net-ru-he-huo-qu-kuai-can-zhao-de-zhen-shi-ming-cheng/m-p/10969096#M5466</link>
      <description>&lt;P&gt;请问一下楼主，这个查看图纸symbol table的界面是怎么调出来？&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 07:41:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-zong-he-zhong-wen-lun-tan/net-ru-he-huo-qu-kuai-can-zhao-de-zhen-shi-ming-cheng/m-p/10969096#M5466</guid>
      <dc:creator>zhangyhmax</dc:creator>
      <dc:date>2022-02-24T07:41:01Z</dc:date>
    </item>
    <item>
      <title>回复： .NET如何获取块参照的真实名称</title>
      <link>https://forums.autodesk.com/t5/autocad-zong-he-zhong-wen-lun-tan/net-ru-he-huo-qu-kuai-can-zhao-de-zhen-shi-ming-cheng/m-p/10969386#M5467</link>
      <description>&lt;P&gt;用的arxdbg工具&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 10:30:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-zong-he-zhong-wen-lun-tan/net-ru-he-huo-qu-kuai-can-zhao-de-zhen-shi-ming-cheng/m-p/10969386#M5467</guid>
      <dc:creator>ouyangzhikui</dc:creator>
      <dc:date>2022-02-24T10:30:24Z</dc:date>
    </item>
  </channel>
</rss>

