cad2006呢,Editor貌似没有GetCurrentView()和SetCurrentView()方法啊
还用06啊?AutoCAD都升了10版了。
06的API接口我没有,不过我相信这都是最基本的方法,即使同名的没有,同功能的肯定会有的。 guohq 发表于 2015-8-1 15:41
_
Private Shared Function acedCmd(ByVal rbp As IntPtr) As Integer
Public Shared Sub ZoomAll()
Dim res As New ResultBuffer From {
New TypedValue(Autodesk.AutoCAD.Runtime.LispDataType.Text, "._ZOOM"),
New TypedValue(Autodesk.AutoCAD.Runtime.LispDataType.Text, "_A")
}
acedCmd(res.UnmanagedObject)
End Sub
<DllImport("accore.dll", EntryPoint:="acedCmd", CharSet:=CharSet.Auto, CallingConvention:=CallingConvention.Cdecl)>
Private Shared Function acedCmd(ByVal rbp As IntPtr) As Integer
End Function
为何我这个zoomall没反应 tiancao100 发表于 2024-2-1 15:54
Public Shared Sub ZoomAll()
Dim res As New ResultBuffer From {
New Typed ...
你用的CAD哪个版本? guohq 发表于 2024-2-5 08:09
你用的CAD哪个版本?
Auto CAD 2020 doc.stringtoexecute("zoom _all ");
页:
1
[2]