satishrajdev Posted April 19, 2012 Share Posted April 19, 2012 Dear all i want to stretch jpeg image to the different particular points in normal autocad, just like Autocad Map 3D having rubbersheet option for that, Anybody knows any tool or lisp or application that could help me out reply as soon as possible Quote Link to comment Share on other sites More sharing options...
samchums26 Posted April 19, 2012 Share Posted April 19, 2012 i guess you cannot stretch the jpeg through x or y. just scale the image. Quote Link to comment Share on other sites More sharing options...
MSasu Posted April 19, 2012 Share Posted April 19, 2012 You can achieve that by converting the image into a block (BLOCK command) and adjusting independently the scale factors on X, respectively Y axis. May exploded the block just after, the image will retain the new ratio (don't forget to purge the said block in this case). Or may adjust the original image in an image editor and re-insert it (if not attached). Quote Link to comment Share on other sites More sharing options...
satishrajdev Posted April 19, 2012 Author Share Posted April 19, 2012 Thank you guys for showing interest I can do that by blocking the image but it will take little time for scaling and rotating, that's why I want such tool that can do that automatically Quote Link to comment Share on other sites More sharing options...
MSasu Posted April 19, 2012 Share Posted April 19, 2012 Something like this? ;;; Scale Image with Different Factors (19-IV-2012) (defun c:SIDF( / oldCMD imageItem scaleX scaleY assocImage insPoint ) (setq oldCMD (getvar "CMDECHO"))(setvar "CMDECHO" 0) (if (and (setq imageItem (ssget "_:S:E" '((0 . "IMAGE")))) (setq scaleX (getreal "\nScale on X: ")) (setq scaleY (getreal "\nScale on Y: "))) (progn (setq assocImage (entget (ssname imageItem 0)) insPoint (cdr (assoc 10 assocImage))) (command "_BLOCK" "TEMP1234567" insPoint (ssname imageItem 0) "") (command "_INSERT" "TEMP1234567" "_non" insPoint scaleX scaleY 0.0) (command "_PURGE" "_B" "TEMP1234567" "_N") ) ) (setvar "CMDECHO" oldCMD) (progn) ) Please note that doesn't work with pasted imaged, only with attached ones. Quote Link to comment Share on other sites More sharing options...
Bogbadbob658 Posted April 19, 2012 Share Posted April 19, 2012 I'm not aware of anything that does what you want but as a work around you make 2 blocks, one being the jpeg and another being a simple block with reference points only that matches your jpeg, you can then manipulate the second block to where you want it then use 'blockreplace' to swap the block to the jpeg block it will take the same characteristics. Make sure that both blocks have the same insertion point. It will save the long delays in trying to manipulate a block with a jpeg in it. Quote Link to comment Share on other sites More sharing options...
SLW210 Posted April 19, 2012 Share Posted April 19, 2012 Select the image > Right-Click > Properties > Geometry > Lock Aspect = NO Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.