Hi. Anybody has a sample code of BlockList control for previewing the blocks of External DWG?
Control Browser saying : The block list control displays a list of all blocks defined in the current drawing file or in an external .dwg file.
But it's still out of my fingers.
For previewing blocks must use Blockview control?
No, blocklist displays a list of all blocks defined in the current drawing file or in an external .dwg file as you quoted correctly.
What you need is either a DWGPreview (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Control/DwgPreview.htm) or a DWGList (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Control/DwgList.htm) Control.
Fred
Ok, khann, my fault. I've read your initial message again and now I know that you mean the block previews of the external DWG.
Then you are right with a block list.
Set the style property to 0 in OpenDCL Studio.
At runtime of your dialog you have to load the DWG file using
(dcl_BlockList_LoadDwg MyProj_MyForm_MyBlockList strDWGFileName)
After that the blocks should be shown in the list.
Fred
Finally, I attached a sample. Please notice that the block previews must be stored into the external DWG file otherwise it won't work (you see a dummy then).
Fred
:) Wonderful! Thank you very much Fred, you're so kind!
That's really what I need.