.NET

Reply
Valued Contributor
swaywood
Posts: 91
Registered: ‎08-22-2013
Message 1 of 11 (181 Views)
Accepted Solution

show a picture in a picturebox control, but the previewicon is so small

181 Views, 10 Replies
05-31-2014 05:08 AM

Hi,all:

     I want to generate the images for the blocks, I found a method of blcitablerecord, but the image is too small, and can not show out clearly.

Bitmap preview = btr.PreviewIcon;

 

 

    you know in autocad there is a MSLIDE command, can make a .sld file which can show out clearly in a lisp programe, but in .net winform how to show the image clearly? or other method to solve it?

 

Hi,

 

See :Preview Images

 

By the way, that screen grab looks quite old.

 

Gaston Nunez

 

 

Valued Contributor
swaywood
Posts: 91
Registered: ‎08-22-2013
Message 2 of 11 (173 Views)

Re: show a picture in a picturebox control, but the previewicon is so small

05-31-2014 06:23 AM in reply to: swaywood

sshot-10.png

Valued Mentor
gasty1001
Posts: 487
Registered: ‎04-11-2010
Message 3 of 11 (151 Views)

Re: show a picture in a picturebox control, but the previewicon is so small

05-31-2014 12:38 PM in reply to: swaywood

Hi,

 

See :Preview Images

 

By the way, that screen grab looks quite old.

 

Gaston Nunez

 

 

Valued Contributor
swaywood
Posts: 91
Registered: ‎08-22-2013
Message 4 of 11 (141 Views)

Re: show a picture in a picturebox control, but the previewicon is so small

05-31-2014 07:10 PM in reply to: gasty1001

Hi,Gasty:

    thank you for your information. I tried Kean's code, but get a error, can not found the method 'CMLContentSearchPreviews'.

    by the way, what's the new screen grab tool you use?

regards

swaywood

Valued Contributor
swaywood
Posts: 91
Registered: ‎08-22-2013
Message 5 of 11 (126 Views)

Re: show a picture in a picturebox control, but the previewicon is so small

06-01-2014 09:53 AM in reply to: swaywood

can any body help me?

I can not found the method of 'CMLContentSearchPreviews' in autocad2013 Autodesk.AutoCAD.Windows.Data namespace.

the following is kean's blog address.

http://through-the-interface.typepad.com/through_the_interface/2013/11/generating-larger-preview-ima...

 

*Expert Elite*
Jeff_M
Posts: 4,398
Registered: ‎07-22-2003
Message 6 of 11 (122 Views)

Re: show a picture in a picturebox control, but the previewicon is so small

06-01-2014 10:21 AM in reply to: swaywood

Looks like that Class was added to the 2014 product, so you won't see it in 2013.

Jeff_M, also a frequent Swamper
Valued Contributor
swaywood
Posts: 91
Registered: ‎08-22-2013
Message 7 of 11 (106 Views)

Re: show a picture in a picturebox control, but the previewicon is so small

06-01-2014 07:21 PM in reply to: Jeff_M

hi,jeff:

Valued Contributor
swaywood
Posts: 91
Registered: ‎08-22-2013
Message 8 of 11 (105 Views)

Re: show a picture in a picturebox control, but the previewicon is so small

06-01-2014 07:24 PM in reply to: swaywood

Hi,jeff:

do you know autocad2014 match what VS and framework .net version?

it seem's .net 4.0 can not import 2014 version acmgd.dll for me.

*Expert Elite*
Jeff_M
Posts: 4,398
Registered: ‎07-22-2003
Message 9 of 11 (101 Views)

Re: show a picture in a picturebox control, but the previewicon is so small

06-01-2014 07:29 PM in reply to: swaywood

I used VS2010, until just recently, with AutoCAD 2014. .NET 4.0

Jeff_M, also a frequent Swamper
Valued Mentor
gasty1001
Posts: 487
Registered: ‎04-11-2010
Message 10 of 11 (96 Views)

Re: show a picture in a picturebox control, but the previewicon is so small

06-01-2014 08:05 PM in reply to: swaywood

Hi,

 

I'm using VS 2013 now, but i don't remember problems with Autocad 2014 and .net 4.0 in VS 2010, are you sure you have the right SDK , reference from the include folder and set copy to local false?

 

Gaston Nunez

Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.