[原创]AutocadMAP如何获得?
<p>现在要获取对象数据,参考了一些程序,大概是</p><p> AutocadMAP.AcadMap map = <font size="2">ThisDrawing.Application.GetInterfaceObject("<font color="#c60a00">AutoCADMap</font>.Application.2") </font> AutocadMAP.Project p = map.<font size="2">Projects(ThisDrawing);</font></p><p> for (int i = 0; i < p.ODTables.Count; i++)<br/> {<br/> AutocadMAP.ODTable temtable = p.ODTables.Item(i);<br/> string text = temtable.Name;<br/> }<br/> AutocadMAP.ODTable table = p.ODTables.Item("ObjectInfo");<br/> AutocadMAP.ODRecords records = table.GetODRecords();</p><p>就是前面两句,在c#里不知道怎么写?我用的是autodesk' map 2005,c#2005.我查了很多网页,都用的ThisDrawing。但我在c#里敲这个又说无定义,而且也没有<font size="2">GetInterfaceObject这个函数。是不是版本的问题呢?该如何解决?请大侠出来指点!谢谢!</font></p>
页:
[1]