判断模型空间还是图纸空间
Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
Dim acEd As Editor = acDoc.Editor
Dim acDb As Database = acDoc.Database
If acDb.TileMode Then
acEd.WriteMessage(vbLf & "当前空间:【模型空间】")
ElseIf acDb.CurrentSpaceId = SymbolUtilityServices.GetBlockModelSpaceId(acDb) Then
acEd.WriteMessage(vbLf & "当前空间:【某一视口】")
Else
acEd.WriteMessage(vbLf & "当前空间:【图纸空间】")
End If
AutoCAD .Net 加载lisp
欢迎关注微信公众账号ByCAD