设置之后,确实不能再更改回去,只能通过其它方法,比如在Lisp中修改。
- Sub test()
- Dim textobj As AcadText
- Set textobj = ThisDrawing.ModelSpace(0)
- ThisDrawing.SendCommand "(setq e (entget (handent " & """" & textobj.Handle & """" & ")))" & vbCr
- ThisDrawing.SendCommand "(setq e (subst (cons 71 0) (assoc 71 e) e))" & vbCr
- ThisDrawing.SendCommand "(entmod e)" & vbCr
- ThisDrawing.SendCommand "(setq e nil)" & vbCr
- End Sub
|