Use INSERTOBJ command in Autolisp or equivalent

Use INSERTOBJ command in Autolisp or equivalent

MICROCADDAER6
Explorer Explorer
1,385 Views
3 Replies
Message 1 of 4

Use INSERTOBJ command in Autolisp or equivalent

MICROCADDAER6
Explorer
Explorer

I want to insert unreferenced images file .JPG like OLE.
Have an example of INSERTOBJ or an equivalent Autolisp function?

0 Likes
Accepted solutions (1)
1,386 Views
3 Replies
Replies (3)
Message 2 of 4

ronjonp
Mentor
Mentor

Thread HERE too.

0 Likes
Message 3 of 4

Sea-Haven
Mentor
Mentor

I used a add raster to our company where is that person located ? It took the floor plan and using telephone extension number located a staff member jpg. It would add around 50 jpgs automatically, person moved so just moved there phone to new location. 

 

Anyway this is what I used as the insert part.

(setq mspace (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object))))

(vla-AddRaster mspace name inspt 1.5 0.0) 

 

Message 4 of 4

Moshe-A
Mentor
Mentor
Accepted solution

@MICROCADDAER6  hi,

 

to insert images you can use CLASSICIMAGE command (command "classicimage")

to insert OLE objects i suggest to use (entmake) function, explore dxf codes of OLE2FRAME object.

 

moshe

 

0 Likes