vb.net ObjectClass().DxfName的问题
<p>For Each acObjId As ObjectId In acBlkTblRec<br/> acDoc.Editor.WriteMessage(vbLf & "DXF name: " & acObjId.ObjectClass().DxfName)<br/> acDoc.Editor.WriteMessage(vbLf & "ObjectID: " & acObjId.ToString())<br/> acDoc.Editor.WriteMessage(vbLf & "Handle: " & acObjId.Handle.ToString())<br/> acDoc.Editor.WriteMessage(vbLf)<br/> Next</p><p>acObjId.ObjectClass().DxfName) 出错了'ObjectClass' is not a member of 'Autodesk.AutoCAD.DatabaseServices.ObjectId'.</p><p>请大侠出手相助,呵呵</p><p></p> CAD版本2010才支持 <p>谢谢版主,</p><p>那有替代的方法吗,怎么知道实体的类型呢?</p><p>2010是个好东东,但是很多专业的软件和插件都支持,用起来不是很顺手啊</p> <p>只有先调用GetObject获取对象,然后判断</p>
页:
[1]