• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

climbing images

  • Thread starter Thread starter Angelo2449
  • Start date Start date

Angelo2449

Guest
Hello everyone,
I would like to scale an image compared to another one with one command, as is done with the transfer of ownership.
Is there already a routine?
Thank you.
 
(setq imm_1 (car (entsel "\nselect source image")))
(setq scale1 (vlax-get (vlax-ename->vla-object imm_1) 'scalefactor')
(setq imm_2 (car (entsel "\nselect the destination image")))
(setq fs (* scala1 (getreal "\nfactor of scale: ")
(vlax-put (vlax-ename->vla-object imm_2) 'scalefactor fs)
 
routine asks to select two images and then scale factor.
the scale factor should be taken from the properties of the first image or, the second image should be scaled to have it, dimensionally, equal to the first.
thank you.
 
(setq imm_1 (car (entsel "\nselect source image")))
(setq scale1 (vlax-get (vlax-ename->vla-object imm_1) 'scalefactor')
(setq imm_2 (car (entsel "\nselect the destination image")))
(vlax-put (vlax-ename->vla-object imm_2) 'scalefactor scala1)
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top