Variable with PictureBox_DrawLine list

Started by kruuger, March 17, 2010, 03:30:08 PM

Previous topic - Next topic

kruuger

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

BazzaCAD

Try this:

Code (autolisp) Select

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

a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

kruuger

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

BazzaCAD

Yes ODCL has always had an issue with '() lists
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

owenwengerd

Just to clarify, this has nothing to do with OpenDCL, it's how the AutoLISP (quote) function is supposed to work.
Owen Wengerd (Outside The Box) / ManuSoft