常用语句

1、当前活动文档   

常用语句
Dim doc As ApplicationServices.Document = ApplicationServices.Application.DocumentManager.MdiActiveDocument
View Code

2、拾取图元

常用语句
        Dim peo As New EditorInput.PromptEntityOptions("请指定一个图块")
        With peo
            .SetRejectMessage("需要图块")
            .AddAllowedClass(GetType(DatabaseServices.BlockReference), True)
        End With

        Dim per As EditorInput.PromptEntityResult = doc.Editor.GetEntity(peo)

        If Not per.Status = EditorInput.PromptStatus.OK Then
            Exit Sub
        End If
View Code

 

上一篇:雷林鹏分享:Redis 性能测试


下一篇:linux 获取程序执行时间的方法