OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: kruuger on March 17, 2010, 03:30:08 PM

Title: Variable with PictureBox_DrawLine list
Post by: kruuger on March 17, 2010, 03:30:08 PM
i try to modify my PictureBox_DrawLine list by variable. i try something like this:

Code (autolisp) Select
(setq www 4)
(dcl_PictureBox_DrawLine LineType_LineType_PictureBox1
 '(
   (www 22 75 22 7)
 )
)


but there is error invalid data type or data overflow: WWW
is there any solution for this

thanks
Title: Re: Variable with PictureBox_DrawLine list
Post by: BazzaCAD on March 17, 2010, 03:59:59 PM
Try this:

Code (autolisp) Select

(setq www 4) 
(dcl_PictureBox_DrawLine LineType_LineType_PictureBox1 
   (list www 22 75 22 7) 
)

Title: Re: Variable with PictureBox_DrawLine list
Post by: kruuger on March 18, 2010, 04:16:13 PM
i noticed if we use integer value then we can wrote code like this:
'(
  (10 10 230 10 248)
  (10 20 230 20 249)
)

if we use variable then code should be like this:
(list
  (list 10 10 230 bbb 248)
  (list 10 aaa 230 20 249)
)

Thanks
Title: Re: Variable with PictureBox_DrawLine list
Post by: BazzaCAD on March 18, 2010, 05:28:42 PM
Yes ODCL has always had an issue with '() lists
Title: Re: Variable with PictureBox_DrawLine list
Post by: owenwengerd on March 18, 2010, 05:34:21 PM
Just to clarify, this has nothing to do with OpenDCL, it's how the AutoLISP (quote) function is supposed to work.