Visual Basic Customization

Reply
Valued Contributor
pipu123
Posts: 61
Registered: ‎09-27-2010
Message 1 of 3 (134 Views)

DwgThumbnail resize image on icon

134 Views, 2 Replies
02-08-2012 06:10 AM

With help on this link

http://www.visiblevisual.com/index.php/AutoCad-VB/VBA/Preview-DWGfiles-using-the-DWGThumbnail.html    

 

I wrote my code,

 

but my result- the dwg preview is very small I only white screen without figures which I wrote in it.

2) how to resize and fit the image into the icon ? (when i press command button I would like to see maximum

 image in icon )

Thank You for help in advance   

 

 

*Expert Elite*
Alfred.NESWADBA
Posts: 8,866
Registered: ‎06-29-2007
Message 2 of 3 (117 Views)

Re: DwgThumbnail resize image on icon

02-12-2012 11:38 AM in reply to: pipu123

Hi,

 

>> when i press command button I would like to see maximum image in icon

First, I have not tried your code and not the plugin, but just as input: the input for the plugin is the filename, so it seems that the Control is loading the DWG you give by filename, and it has nothing to do with "what you see on your display" ... as long as you have not saved your drawing.

 

So try the following steps:

  • Zoom to what you want to see in the preview
  • Save the DWG
  • and after saving activate your Control by setting the new filename as ".DwgFileName"

 

Good luck, - alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Valued Contributor
pipu123
Posts: 61
Registered: ‎09-27-2010
Message 3 of 3 (116 Views)

Re: DwgThumbnail resize image on icon

02-12-2012 02:34 PM in reply to: Alfred.NESWADBA

Thank You for hint

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community