AutoCAD开发8---获取块属性(C#)
2021-01-25 06:16
标签:block code getattr text oca article enc reference col 转自:http://www.programfan.com/article/3161.html AutoCAD开发8---获取块属性(C#) 标签:block code getattr text oca article enc reference col 原文地址:https://www.cnblogs.com/jordonin/p/12028274.htmlpublic object GetValueByAttributeName(dbx.AcadBlockReference blkRef,string AttributeName)
{
object[] Atts=(object[])blkRef.GetAttributes();
object attValue=null;
for (int i=0;i
{
dbx.AcadAttributeReference attRef;
attRef=(dbx.AcadAttributeReference)Atts[i];
if (attRef.TagString==AttributeName)
{
attValue= attRef.TextString ;
break;
}
}//end of for i
return attValue;
}// end of function
上一篇:C# 定时器
文章标题:AutoCAD开发8---获取块属性(C#)
文章链接:http://soscw.com/index.php/essay/46675.html