2009-03-12 22:42 UTC
Hi,
I have a problem with this part of my code:
The tree and list boxes are working beautifully, but when dcl_DwgPreview_LoadDwg, it gives me this error:
But obviously, if you look at my codes, it won't even call this command if "Dwgname" is nil. I even used "BLKLIBoDCL_frmBlkLib_diaDwgPrev" just to make sure that it calls the right control, but I still get the same error. What buffles me is that the ViewDWG sample code works just fine using the same "Dwgname" variable.
The AutoCAD command line displays "ADS request error".
Am I missing something?
Thanks.
I have a problem with this part of my code:
(if Parent
(progn
(setq Dwgname (strcat path2 "\\" Parent "\\" Child "\\" Value ".dwg"))
(if (/= Dwgname nil)
(dcl_DwgPreview_LoadDwg diaDwgPrev Dwgname)
)
)
(progn
(setq Dwgname (strcat path2 "\\" Child "\\" Value ".dwg"))
(if (/= Dwgname nil)
(dcl_DwgPreview_LoadDwg diaDwgPrev Dwgname)
)
)The tree and list boxes are working beautifully, but when dcl_DwgPreview_LoadDwg, it gives me this error:
An OpenDCL function argument processing exception has occured!
Error: NIL value not allowed
Function: dcl_DwgPreview_LoadDwg
Argument: 0
But obviously, if you look at my codes, it won't even call this command if "Dwgname" is nil. I even used "BLKLIBoDCL_frmBlkLib_diaDwgPrev" just to make sure that it calls the right control, but I still get the same error. What buffles me is that the ViewDWG sample code works just fine using the same "Dwgname" variable.
The AutoCAD command line displays "ADS request error".
Am I missing something?
Thanks.