Message 1 of 3
modify ACAD_IMAGE_VARS using VL.Application

Not applicable
09-11-2008
03:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Did anybody made successful changes to the ACAD_IMAGE_VARS using the VL Application?
I can retrieve the value of the ImageFrame status(0,1 or 3) but cannot change it?
If i execute the following statement in the AutoCAD command the status of the ImageFrame is changed, however it will not when the lisp expression is evaluated using VL.
(setq dict (dictsearch (namedobjdict) "ACAD_IMAGE_VARS"))(entmod (subst (cons 70 0) (assoc 70 dict) dict))
Set vlApp = Application.GetInterfaceObject("VL.Application.16")
Set vlFunctions = vlApp.ActiveDocument.Functions
Set vlFuncCall = vlFunctions.Item("read").funcall(lispCommand)
call vlFunctions.Item("eval").funcall(vlFuncCall)
Every time I get Type Mismatch errors.
I tried it with the Vlax.cls class, executed (vl-load-Com) first, executed imageframe OFF to be sure the dictionary and its vars are there, (vl-cmdf (..)) etc.
Thanks for any help
Frits
I can retrieve the value of the ImageFrame status(0,1 or 3) but cannot change it?
If i execute the following statement in the AutoCAD command the status of the ImageFrame is changed, however it will not when the lisp expression is evaluated using VL.
(setq dict (dictsearch (namedobjdict) "ACAD_IMAGE_VARS"))(entmod (subst (cons 70 0) (assoc 70 dict) dict))
Set vlApp = Application.GetInterfaceObject("VL.Application.16")
Set vlFunctions = vlApp.ActiveDocument.Functions
Set vlFuncCall = vlFunctions.Item("read").funcall(lispCommand)
call vlFunctions.Item("eval").funcall(vlFuncCall)
Every time I get Type Mismatch errors.
I tried it with the Vlax.cls class, executed (vl-load-Com) first, executed imageframe OFF to be sure the dictionary and its vars are there, (vl-cmdf (..)) etc.
Thanks for any help
Frits