- UID
- 153907
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2004-6-30
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
我有一个AutoCAD 2004的文件---Sample Drawing.dwg, 该文件存在一个名称为GCL_Title的块。通过以下的代码获得块属性。
AutoCAD.AcadBlockReference refer1 = doc.ModelSpace.InsertBlock(entity.Origin, "GCL_Title", 1, 1, 1, 0, null);
string sTag;
string sValue;
System.Array var = (System.Array)refer1.GetAttributes();
for(int i = 0; i < var.GetLength(0); i++)
{
AcadAttributeReference attributeRef = (AcadAttributeReference)var.GetValue(i);
sTag = attributeRef.TagString;
sValue = attributeRef.TextString;
}
但是该代码的值sValue,不是我所需要的。他是“修改”菜单:对象à属性 à块属性管理器里面的值。而不是增强属性编辑器中的值,即“工具”菜单-à属性提取中的值。
我想知道如何获得该值,利用VBA或C#或VB.NET |
|