Real_King 发表于 2015-5-27 16:55:10

如何将C#.NET的DBtext转化为COM下的AcadEntity?HandleToObject的参数如何写?

Autodesk.AutoCAD.Interop.AcadApplication cadapp = AcadApp.AcadApplication as Autodesk.AutoCAD.Interop.AcadApplication;
AcadEntity TEMP = cadapp.ActiveDocument.HandleToObject(???) as AcadEntity;

雪山飞狐_lzh 发表于 2015-5-27 17:09:44

Txt.acacobject

Real_King 发表于 2015-5-27 17:29:54

雪山飞狐_lzh 发表于 2015-5-27 17:09 static/image/common/back.gif
Txt.acacobject

谢谢,我找到了错误原因,是我还没把实体添加到数据库就进行转换了
页: [1]
查看完整版本: 如何将C#.NET的DBtext转化为COM下的AcadEntity?HandleToObject的参数如何写?