AutoCAD 2010/2011/2012 DWG Format
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
setting image size
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
hi all.
I 'm attaching images through c# using lisp _image and sendcommand in a predefined rectangle.
how can I specify width and height of the image so the image is exactly placed inside the area that I want?
(scale is not a good option because as image ratio changes scale must also change).
thanks in advance.
Solved! Go to Solution.
Re: setting image size
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
you have to go via scale-factors as AutoCAD does not have properties for SizeX and SizeY. So you have to check the imagesize (width & height) and with that you have to calculate the scalefactors for X and Y.
BTW: working with C#, using LISP ... to run SendCommand ==> it's not the most direct way to go, is there a reason why you do that in this way?
If it's just knowledge ... try >>>this link<<< from Kean Walmsley.
- alfred -
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: setting image size
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
thanks for the reply.
I tried the approach in the link you gave avd it worked.

