.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

block image.

10 REPLIES 10
Reply
Message 1 of 11
namrata.nekkanti
965 Views, 10 Replies

block image.

can anybody suggest how to use the block image so that
i can display it on my user form
all i know is that the autocad image should be converted to
system.image . can anybody suggest how i could go about with this.

thanks
namrata
10 REPLIES 10
Message 2 of 11
Anonymous
in reply to: namrata.nekkanti

What do you mean by block image?

Do you mean Block thumbnail Icon,
or something else?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5002238@discussion.autodesk.com...
can anybody suggest how to use the block image so that
i can display it on my user form
all i know is that the autocad image should be converted to
system.image . can anybody suggest how i could go about with this.

thanks
namrata
Message 3 of 11

yes i want to create a thumbnail image of the block on my user interface
Message 4 of 11
Anonymous
in reply to: namrata.nekkanti

See the sample code here:

http://www.caddzone.com/BlockIconSample.zip

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5005109@discussion.autodesk.com...
yes i want to create a thumbnail image of the block on my user interface
Message 5 of 11
Anonymous
in reply to: namrata.nekkanti

Hello Tony
Thanks for the Sample.

Built in MSVC#2003 , Running in AC2006 :
For me, the class seems to recognise only blocks built and retained in the
document, not inserted blocks.

Regards
Kerry Brown


"Tony Tanzillo" wrote in message
news:5005286@discussion.autodesk.com...
See the sample code here:

http://www.caddzone.com/BlockIconSample.zip

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5005109@discussion.autodesk.com...
yes i want to create a thumbnail image of the block on my user interface
Message 6 of 11
Anonymous
in reply to: namrata.nekkanti

It's for displaying icons for blocks, not block insertions
(or perhaps I'm not undertstanding what you say below?).

If a block has no icon, you can generate one for it
using the BLOCKICON command.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Kerry Brown" wrote in message news:5005334@discussion.autodesk.com...
Hello Tony
Thanks for the Sample.

Built in MSVC#2003 , Running in AC2006 :
For me, the class seems to recognise only blocks built and retained in the
document, not inserted blocks.

Regards
Kerry Brown


"Tony Tanzillo" wrote in message
news:5005286@discussion.autodesk.com...
See the sample code here:

http://www.caddzone.com/BlockIconSample.zip

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5005109@discussion.autodesk.com...
yes i want to create a thumbnail image of the block on my user interface
Message 7 of 11
Anonymous
in reply to: namrata.nekkanti

Using the BLOCKICON command did the trick ... Thanks.

////
"Tony Tanzillo" wrote in message
news:5005830@discussion.autodesk.com...
It's for displaying icons for blocks, not block insertions
(or perhaps I'm not undertstanding what you say below?).

If a block has no icon, you can generate one for it
using the BLOCKICON command.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Kerry Brown" wrote in message
news:5005334@discussion.autodesk.com...
Hello Tony
Thanks for the Sample.

Built in MSVC#2003 , Running in AC2006 :
For me, the class seems to recognise only blocks built and retained in the
document, not inserted blocks.

Regards
Kerry Brown


"Tony Tanzillo" wrote in message
news:5005286@discussion.autodesk.com...
See the sample code here:

http://www.caddzone.com/BlockIconSample.zip

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5005109@discussion.autodesk.com...
yes i want to create a thumbnail image of the block on my user interface
Message 8 of 11
nikgl
in reply to: namrata.nekkanti

It's very old thread but...
I've tested Tony's example and works ok to me. The problem is that the produced bitmap is fixed size of 32X32 which is very low to use it in a form.
Any other workaround to get a better resolution?
How to avoid the use of BLOCKICON command and make the preview inside .net ?

Thanks
Message 9 of 11
Anonymous
in reply to: namrata.nekkanti

Hello,

When I compile, I get the message, "The name 'BlockThumbnailHelper' does not
exist in the current context" Any suggestions? My operating environment is
Windows Vista, Visual Studio 2008 Professional, and AutoCAD 2009


"Tony Tanzillo" wrote in message
news:5005286@discussion.autodesk.com...
See the sample code here:

http://www.caddzone.com/BlockIconSample.zip

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5005109@discussion.autodesk.com...
yes i want to create a thumbnail image of the block on my user interface
Message 10 of 11
Anonymous
in reply to: namrata.nekkanti

I was able to compile using AutoCAD 2008 managed libraries.

"J_Walters" wrote in message
news:6001611@discussion.autodesk.com...
Hello,

When I compile, I get the message, "The name 'BlockThumbnailHelper' does not
exist in the current context" Any suggestions? My operating environment is
Windows Vista, Visual Studio 2008 Professional, and AutoCAD 2009


"Tony Tanzillo" wrote in message
news:5005286@discussion.autodesk.com...
See the sample code here:

http://www.caddzone.com/BlockIconSample.zip

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5005109@discussion.autodesk.com...
yes i want to create a thumbnail image of the block on my user interface
Message 11 of 11
Anonymous
in reply to: namrata.nekkanti

That code was for older releases where the PreviewIcon
property of the BlockTableRecord was not implemented yet.

In 2009 it is, so you don't need that workaround any longer.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm

"J_Walters" wrote in message news:6001971@discussion.autodesk.com...
I was able to compile using AutoCAD 2008 managed libraries.

"J_Walters" wrote in message
news:6001611@discussion.autodesk.com...
Hello,

When I compile, I get the message, "The name 'BlockThumbnailHelper' does not
exist in the current context" Any suggestions? My operating environment is
Windows Vista, Visual Studio 2008 Professional, and AutoCAD 2009


"Tony Tanzillo" wrote in message
news:5005286@discussion.autodesk.com...
See the sample code here:

http://www.caddzone.com/BlockIconSample.zip

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5005109@discussion.autodesk.com...
yes i want to create a thumbnail image of the block on my user interface

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost