请任何人都可以在这个问题上提供帮助
新点:int of;错误:AutoCAD变量设置被拒绝:“CVPORT”1
- ;;; Pan in All Viewports (28-XI-2012)
- (defun c:PAV( / oldCVPort oldCmdEcho listVPorts pointBase pointMove )
- (setq listVPorts (mapcar 'car (vports))
- oldCmdEcho (getvar "CMDECHO")
- oldCVPort (getvar "CVPORT"))
- (setvar "CMDECHO" 0)
- (if (and (setq pointBase (getpoint "\nBase point: "))
- (setq pointMove (getpoint pointBase "\nNew point: ")))
- (foreach itemVPort listVPorts
- (setvar "CVPORT" itemVPort)
- (command "_PAN" pointBase pointMove)
- )
- )
- (setvar "CVPORT" oldCVPort)
- (setvar "CMDECHO" oldCmdEcho)
- (princ)
- )
|