明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1380|回复: 3

急需请教measure 在lisp语言中调用的格式与参数

[复制链接]
发表于 2005-7-28 20:54 | 显示全部楼层 |阅读模式

请教measure 在lisp语言中调用的格式与参数;如(command "erase" p1 p2 "w" pw1 pw2);谢谢赐教?

发表于 2005-7-28 21:25 | 显示全部楼层

类似command "measure" (entlast) "1")

 

发表于 2005-7-29 09:10 | 显示全部楼层
任何命令的调用,你都可以在命令行先试,在命令行需要输入什么,就在(command "cmd" 后面添加什么,..
 楼主| 发表于 2005-7-31 16:14 | 显示全部楼层
本帖最后由 作者 于 2005-8-1 19:17:01 编辑

Private Sub div()

  Dim obj As AcadObject
  Dim basept As Variant
  Dim SSETS As AcadSelectionSet
On Error Resume Next
  If Not IsNull(ThisDrawing.SelectionSets.Item("PLSET")) Then
     Set SSETS = ThisDrawing.SelectionSets.Item("PLSET")
     SSETS.Delete
  End If
  Set SSETS = ThisDrawing.SelectionSets.Add("PLSET")
 
    SSETS.SelectOnScreen
 
  Set obj = SSETS.Item(0)
 ' ThisDrawing.Utility.GetEntity obj, basept, "please pickt pl:"
  MsgBox obj.ObjectName

'请教下一句怎样改才可以完成measure的任务?
  ThisDrawing.SendCommand "MEASURE" & vbCr & "P" & vbCr & "6" & vbCr

End Sub

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-1 03:40 , Processed in 0.371875 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表