Author Topic: How to get the block's thumbnail in ACAD2010  (Read 2620 times)

0 Members and 1 Guest are viewing this topic.

ruruhehe

  • Guest
How to get the block's thumbnail in ACAD2010
« on: March 25, 2010, 06:35:36 AM »

Masters,
How to get the thumbnail of a block(name is "compass")in ACAD2010 ?
how to use the PreviewIcon property of BlockTableRecord?

Thanks advance.

KewlToyZ

  • Guest
Re: How to get the block's thumbnail in ACAD2010
« Reply #1 on: March 25, 2010, 01:01:36 PM »
Have you tried searching the >NET group here?

http://www.theswamp.org/index.php?action=search2

ruruhehe

  • Guest
Re: How to get the block's thumbnail in ACAD2010
« Reply #2 on: March 26, 2010, 03:23:26 AM »
It's OK
 :lol:

Code: [Select]
Dim acBID As ObjectId = acBT.Item(BlockName)
Dim acBTRBlock As BlockTableRecord = acTrans.GetObject(acBID, OpenMode.ForRead)
Pic.Image = acBTRBlock.PreviewIcon