[求助]BlockReference的名称
想获取选择块的名称。是我缺少引用还是什么问题啊?没有<font face="Verdana">BlockReference</font>.name项啊!我用的cad2007。 <p>试下:</p><p>先获取BlockReference.BlockTableRecord Property</p>
<p>然后打开BlockTableRecord获取它的Name</p> 谢了,先试下! <p><font face="Verdana">BlockTableRecord blR = (BlockTableRecord)trans.GetObject(Bl.BlockId, OpenMode.ForRead);</font></p>
<p>好了,谢谢!</p> <p><font face="Verdana">上面的错了,准确的应该是这样的:</font></p>
<p><font face="Verdana">BlockTableRecord blR = (BlockTableRecord)trans.GetObject(Bl.BlockTableRecord , OpenMode.ForRead);</font></p>
页:
[1]