khann
2009-05-26 11:41 UTC
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?
fred_tomke
2009-05-26 14:08 UTC
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
{2} or a
{2} Control.
Fred
fred_tomke
2009-05-26 14:13 UTC
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
fred_tomke
2009-05-26 14:50 UTC
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
khann
2009-05-27 00:29 UTC
:) Wonderful! Thank you very much Fred, you're so kind!
That's really what I need.