How to insert multiple images from same file location and different file names .

How to insert multiple images from same file location and different file names .

Shanky1999
Enthusiast Enthusiast
2,523 Views
25 Replies
Message 1 of 26

How to insert multiple images from same file location and different file names .

Shanky1999
Enthusiast
Enthusiast

Is there a lisp to insert multiple images from the exact file location but with different names to a dwg.

Like I have to insert approx 100 images into a dwg. I use the Xref command and enter them manually to the pointer location. Is there a way to make it less tedious like a macro or lisp? It would be a huge help.

 

0 Likes
Accepted solutions (3)
2,524 Views
25 Replies
Replies (25)
Message 21 of 26

Kent1Cooper
Consultant
Consultant

@Shanky1999 wrote:

... it still continues to arrange them vertically. ....


What are your drawing LIMITS relative to the sizes of the images?  As mentioned before, when the right limit is reached, it starts a new row above.  If your Limits are narrow enough compared to a typical image width, it will start a new row with every one.

 

Try setting the LIMITS with the upper right having an X value much larger than that of the lower left [at least several times the typical width of an image].  The Y value doesn't matter -- it's looking only at the width of the Limits.

Kent Cooper, AIA
0 Likes
Message 22 of 26

Shanky1999
Enthusiast
Enthusiast

Thank you so much. Setting the proper limits worked. Can I make it more autonomous, so that I don't have to enter before entering each image, also it will be more efficient and time saving.

0 Likes
Message 23 of 26

Shanky1999
Enthusiast
Enthusiast

More like not pressing the ENTER/SPACE button before importing a new image. Sorry for the confusion.

0 Likes
Message 24 of 26

Kent1Cooper
Consultant
Consultant
Accepted solution

@Shanky1999 wrote:

.... Can I make it more autonomous, so that I don't have to enter before entering each image....


Try this for the attaching command, instead of the IMAGEATTACH command that doesn't seem to have a way of avoiding the dialog box [and note the smaller number of Enters at the end]:

(command "_.image" "_attach" (strcat blkfolder blk) (getvar 'viewctr) "" "")

Kent Cooper, AIA
0 Likes
Message 25 of 26

Shanky1999
Enthusiast
Enthusiast

Thank you so much. It works like a charm.

0 Likes
Message 26 of 26

Sea-Haven
Mentor
Mentor

problem of going vertical, try doing LIMITS before running and change the second Upper Right point to a larger number, the (getvar 'limmax) is possibly getting a small value less than the width of the images. 2 dwg's I checked, one was 12,9 the other was 4000,4000, try like 10 times the current value.

0 Likes