Block thumbnail Icon

Block thumbnail Icon

Anonymous
Not applicable
4,698 Views
21 Replies
Message 1 of 22

Block thumbnail Icon

Anonymous
Not applicable
IS there anyone who can give me some addvice about how to create a block thumbnail icon by c# code. I want to create a block by code and preview the block by BlockThumbnailHelper.GetBlockThumbanail(objcetid). Now , I have created the block, but I can't get the block thumbnail. If anyone has an answer or a hint it would be greatly appreciated.
0 Likes
4,699 Views
21 Replies
Replies (21)
Message 21 of 22

Anonymous
Not applicable
habbit,

FWIW:

I used this workaround on my program to update the block icons.

public static class CallBlockIcon
{
public static void BlkIcon()
{
AcadApplication Aapp = (AcadApplication)Application.AcadApplication;
Aapp.ActiveDocument.SendCommand("(command \"_.BLOCKICON\" \"\") " );
}
}

Then just call:

CallBlockIcon.BlkIcon();

after the transaction is complete.

It'll have to do until they decide to update my AutoCAD version.

Bill
0 Likes
Message 22 of 22

Anonymous
Not applicable
Thanks.Now it works well.
0 Likes