修改图纸会画云线标记修改范围,然后绘制一条线指向修改日期坐标点,如何把这个坐标点存储在该文件中,打开该文件再读取该坐标,继续使用。
- (defun c:xxx (/ c pt pt2 r snap)
- (if #Pt
- (WHILE
- (setq p1 (getpoint "\n插入点: "))
- (command "line" (w2u (car #Pt)) p1 "")
- )
- (progn
- (setq p1 (getpoint "\n预设射线坐标点 : "))
- (setq #Pt (list (u2w p1)))
- (WHILE
- (setq p1 (getpoint "\n插入点: "))
- (command "line" (w2u (car #Pt)) p1 "")
- )
- )
- );if
- )
- ;;坐标WCS=>UCS
- (defun w2u( pt )
- (trans pt 0 1)
- )
- ;999公共函数
- ;;坐标UCS=>WCS
- (defun u2w( pt )
- (trans pt 1 0)
- )
|