Listview viewing DWG Icon like windows explorer is it possible?

Started by khann, August 02, 2013, 12:40:12 AM

Previous topic - Next topic

khann

Hello!
I 'm trying to make a ListView like window explorer of below picture.

User may select a dwg file at some folder,
then I want to show the Dwgpreview in ListView of Icon and label.
Not the BlockList or DwgPreview style, showing only the selected dwg file.
Any tip or sample will be appreciated.

Thanks.

--------------------------


owenwengerd

Owen Wengerd (Outside The Box) / ManuSoft

khann

Thanks, owen.
I know that, but not the all Dwgpreivew of selected folder.
want to add just selected dwg preview in the ListView item.

I've checked every post with "preview" or "image" in this forum and other web site like ADG.
I cound not find the suitable posting.

I wonder , the image of Dwgpreview Control display where is it?
Could manage the Dwgpreview image to saveas out like bmp image?


owenwengerd

There are ways to extract the preview from .DWG files, but I'm not sure you can't achieve what you're after with DwgList and let it do the work for you.
Owen Wengerd (Outside The Box) / ManuSoft

khann

Yea, I just thougth that if I can get the preview image of DWG file then make the preview image as the ImageList item in ListView.
When add the selected DWG file as item to ListView, try to change the image index.
But it failed as you already posted ,  could not make the Imagelist at runtime.

With DwgList, at first add files of selected folder then delete item except the target dwg files.
But the items in the DwgList don't appear like Listview ICON style.

So all I want to do is to add the selected DWG files to ListView items with ICON of preview image
(if possible specified size 48x48 ) and filename as label.

I'm still digging. :'(
Thanks.

khann

Hi, Owen.
Would like to show me the way to extract Dwg Preview image as bmp picture?
Maybe I can get something from that.

Fred Tomke

Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

khann

Hi, Fred.
Good to see you.
Thank you for your concern.
I'll check it.

Thanks.