.NET

.NET

Reply
Valued Contributor
91 Posts
1 Kudo
Registered: ‎08-22-2013
Post 1 of 11
Accepted Solution

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

212 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
91 Posts
1 Kudo
Registered: ‎08-22-2013
Post 2 of 11

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

Distinguished Mentor
582 Posts
91 Kudos
Registered: ‎04-11-2010
Post 3 of 11

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
91 Posts
1 Kudo
Registered: ‎08-22-2013
Post 4 of 11

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
91 Posts
1 Kudo
Registered: ‎08-22-2013
Post 5 of 11

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*
4,596 Posts
911 Kudos
Registered: ‎07-22-2003
Post 6 of 11

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
91 Posts
1 Kudo
Registered: ‎08-22-2013
Post 7 of 11

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
91 Posts
1 Kudo
Registered: ‎08-22-2013
Post 8 of 11

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*
4,596 Posts
911 Kudos
Registered: ‎07-22-2003
Post 9 of 11

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
Distinguished Mentor
582 Posts
91 Kudos
Registered: ‎04-11-2010
Post 10 of 11

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post