jeff.richards
2008-11-26, 04:30 PM
All,
I am working on a routine that will manipulate layer information and objects on existing layers. I wrote this test routine using a test dwg with a few layers (Layer1, Layer2, etc.). I began with the IF function and then built out to the COND function. It worked as planned when specifying layer names.
The next step was to wrap the whole thing in a DEFUN function and assign variables to the layer values. Then I executed the new function and included values for the variables. I get an "; error: too many arguments" message. Is this because I am supplying too many functions to the DEFUN function, or because the layer values are not lists?
Thanks,
I am working on a routine that will manipulate layer information and objects on existing layers. I wrote this test routine using a test dwg with a few layers (Layer1, Layer2, etc.). I began with the IF function and then built out to the COND function. It worked as planned when specifying layer names.
The next step was to wrap the whole thing in a DEFUN function and assign variables to the layer values. Then I executed the new function and included values for the variables. I get an "; error: too many arguments" message. Is this because I am supplying too many functions to the DEFUN function, or because the layer values are not lists?
Thanks,