help with BlockList Control !!!

Started by khann, May 26, 2009, 04:41:44 AM

Previous topic - Next topic

khann

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

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 or a DWGList Control.

Fred

Fred Tomke
Dipl.-Ing. (FH) Landespflege

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

Fred Tomke

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

Code (autolisp) Select
(dcl_BlockList_LoadDwg MyProj_MyForm_MyBlockList strDWGFileName)

After that the blocks should be shown in the list.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

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

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

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

khann

 :) Wonderful! Thank you very much Fred, you're so kind! 
That's really what I need.