DWGPreview

Started by Woabow, December 02, 2011, 05:09:01 AM

Previous topic - Next topic

Woabow

In Bricscad I'm having trouble viewing a DWG in the DGWPreview box. When initialising the Form the preview appears, but I'm not able to switch the content.

I have created a smal testproject with the minimum of code, but it still doesn't work.

Am I doing something wrong?


(defun c:btst ( /   )
(command "_OPENDCL")
(dcl_Project_Load "btst")
(dcl_Form_Show btst_Form1)
)

(defun c:btst_Form1_OnInitialize (/)
(dcl_ListBox_Clear btst_Form1_ListBox1)
(setq fullpathlist '("e:\\temp\\block1.DWG" "e:\\temp\\block2.DWG" "e:\\temp\\block3.DWG"))
(dcl_ListBox_AddList btst_Form1_ListBox1 fullpathlist)
(dcl_DwgPreview_LoadDwg "btst" "Form1" "DwgPreview1" (nth 1 fullpathlist)) ;this preview will show up
)


(defun c:btst_Form1_ListBox1_OnSelChanged (ItemIndexOrCount Value /)
      (dcl_Control_SetCaption btst_Form1_Label1 Value) ; to check the value
      (dcl_DwgPreview_LoadDwg "btst" "Form1" "DwgPreview1" Value) ;box will be cleared at this point
)


(princ)

owenwengerd

I'm pretty sure this is a Bricscad bug, and I recommend reporting it to them directly.
Owen Wengerd (Outside The Box) / ManuSoft

roy_043

Here you will find the same problem (with a work-around):
http://www.opendcl.com/forum/index.php?topic=1710.0

Based on Owen's comment in that thread I assume it is an ODCL issue:
Quote from: owenwengerd on October 23, 2011, 06:56:59 PM
Good catch. This is now fixed for the next build.

owenwengerd

Good catch, I forgot about that one.
Owen Wengerd (Outside The Box) / ManuSoft

Woabow

Thanks for the workaround, now I finally can see the previews in the second page of my browser and the speed is still good.




andrew

heh, i just noticed mine doesnt see the dwgpreview either...

meh, ill just wait for the fixed release instead of using the work around. im to lazy to modify my code for it.

thanks for your suggestion though