.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Dwg thumbnail view using .Net
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
I can get the thumbnail view of the active document from below code
Document doc = Application.DocumentManager.MdiActiveDocument;
System.Drawing.Bitmap bit = doc.Database.ThumbnailBitmap;
How can i get the thumbnail view of the dwg file by passing filename means like below.
Document doc = .....(fileName) : here fileName is dwg file.
Please advise on this issue.
Regards,
Raman
Solved! Go to Solution.
Re: Dwg thumbnail view using .Net
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Google is your friend:
http://www.google.ru/search?ie=UTF-8&hl=ru&q=Displ
Here is one from my program:
http://forums.augi.com/showpost.php?p=1085953&post
Code Conveter
~'J'~
C6309D9E0751D165D0934D0621DFF27919
Re: Dwg thumbnail view using .Net
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Re: Dwg thumbnail view using .Net
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
This code is good.
But i am using 2010. will it works?
Please advise me
Regards,
Raman
Re: Dwg thumbnail view using .Net
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
it's just copy&paste, compile and test .... so why not trying it?
And if you look to the code you'll see it does not use any AutoCAD-lib-functions. so it's independent from any AutoCAD-version (it just reads the icon-part of the image header)
- alfred -
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: Dwg thumbnail view using .Net
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I am not looking for what you have suggested means using with out autocad.
I would like to use AutoCAD API for getting thumbnail. (Message 2).
Please advise.
Thanks is advance.....
Re: Dwg thumbnail view using .Net
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
Why do you have to use the AutoCAD API if you can get the same result without it?
if you want to calculate sin(alpha) ... what could be the reason for doing that with a specific API from AutoCAD instead of the global Math-namespace?
Sorry if I bother you, I'd like to understand why doing something more complex that can be achieved in an easy way (ready to use and independet from any AutoCAD release).
- alfred -
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: Dwg thumbnail view using .Net
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks you very much... I do as you suggested...
-Raman




