Papao
Guest
Good morning to all,
I have a lisp that allows me to insert in the drawing area, all the pictures contained in a certain folder.
the insertion point is via the mouse click (on the drawing area) for each image.
However, given an initial point of insertion on the screen, insert the images stacked at two to two (starting from the bottom left corner, as example below:□□
□□
□□ place below code:
I tried to assign the screen point to a variable, then increase it for inserting the next images... but I mistake something and therefore it does not work:
Do you have any suggestions?
I have a lisp that allows me to insert in the drawing area, all the pictures contained in a certain folder.
the insertion point is via the mouse click (on the drawing area) for each image.
However, given an initial point of insertion on the screen, insert the images stacked at two to two (starting from the bottom left corner, as example below:□□
□□
□□ place below code:
Code:
(foreach item (vl-directory-files loc "*.jpg" 1)
(command "._image" "_a"
(strcat loc "" item)
pause
(* scala 50.0)
0.0
)
(command "_imageframe" 2)
)
Code:
(setq pt1 (getpoint "\n indicate insertion point:"))
