VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DwgThumbnail resize image on icon

2 REPLIES 2
Reply
Message 1 of 3
pipu123
343 Views, 2 Replies

DwgThumbnail resize image on icon

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   

 

 

2 REPLIES 2
Message 2 of 3
Alfred.NESWADBA
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 ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 3
pipu123
in reply to: Alfred.NESWADBA

Thank You for hint

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

Post to forums  

Autodesk Design & Make Report

”Boost