Message 1 of 5

Not applicable
11-19-2015
07:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I was attempting to increase an image's height by 2% with the code below, and I am getting
error: ActiveX Server returned an error: Type mismatch
Anybody know why?
(defun c:12 ()
(setq e (car (entsel " select image "))
ob (vlax-ename->vla-object e)
y (vla-get-height ob)
newy (* y 1.02)
)
(vla-put-height ob newy)
)
Solved! Go to Solution.