OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: hicoffee on February 15, 2008, 05:14:29 PM

Title: refuse "SETVAR"
Post by: hicoffee on February 15, 2008, 05:14:29 PM
After a dockable form be loaded, "SEVAR" will be refuse, "integer" no problem but "string" don't.
-----------
(SETVAR "DIMSCALE" 1)                  ------->ok
(SETVAR "DIMLDRBLK" "DOTSMALL")   ------->error
Title: Re: refuse "SETVAR"
Post by: owenwengerd on February 15, 2008, 08:01:24 PM
This is probably caused by an error in one of the form's event handlers. You could try disabling all the event handlers, then add them back one at a time to pinpoint the one causing the problem.
Title: Re: refuse "SETVAR"
Post by: Fred Tomke on February 17, 2008, 12:26:27 AM
Hello

Many years ago we've found out that (setvar "CLAYER" strLayerName) will be refused in several cases, also when no OpenDCL (or ObjectDCL at that time) was used.
We had much mor luck using ActiveX:

(vla-setvariable oDocument "CLAYER" strLayerName)

HTH,

Fred