谢谢你的帮助!,我还有一个问题,我想我会把它贴在这里,而不是创建一个新的thead。
Visual lisp问题:
我试图使用VLA-ADDTEXT放置文本,但出现以下错误:
“lisp值不强制此类型的变体:(5.59997 12.8634 0.0)”
- (vl-load-com)
- (setq doc (vla-get-ActiveDocument (vlax-get-Acad-Object))
- spc (if (zerop (vla-get-activespace doc))
- (if (= (vla-get-mspace doc) :vlax-true)
- (vla-get-modelspace doc)
- (vla-get-paperspace doc))
- (vla-get-modelspace doc)))
- (if (setq inside (getstring T "\nContents within box: "))
- (while (= "" inside)
- (setq inside (getstring T "\nInvalid Input, Enter Contents within box: "))))
- (setq begin (getpoint "\nCenter of Cell: "))
- (VLA-ADDTEXT spc INSIDE BEGIN 0.09375)
有什么想法吗?
马特 |