TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: CottageCGirl on May 11, 2018, 02:34:32 PM

Title: inserting images
Post by: CottageCGirl on May 11, 2018, 02:34:32 PM
working in vanilla Acad, I need to insert images (format is flexible) , but i need to actually INSERT them, not reference them.  We export and share drawings and I really would prefer not to bind them...

is there a way to insert an image but not need to keep the original file in a stable location?    We publish to PDF as well, but I need a way to keep the image with the .dwg file.
Title: Re: inserting images
Post by: dgorsman on May 11, 2018, 03:39:56 PM
If I'm reading that right, no - there isn't a way to "insert" but not "bind"  :?

You can either reference the original image file (and deal with pathing issues), or you can insert them as a bitmap (and deal with horribly bloated DWG file sizes).

Pathing issues can be mitigated somewhat with relative paths, or project path settings.
Title: Re: inserting images
Post by: kirby on May 11, 2018, 03:45:04 PM
See method on Greg Battin's site

https://autocadtips1.com/2013/02/22/embed-a-picture-not-as-a-reference/ (https://autocadtips1.com/2013/02/22/embed-a-picture-not-as-a-reference/)

(Lots of good tips and code on this site, just stumbled on it a couple of week's ago)
Title: Re: inserting images
Post by: Biscuits on May 11, 2018, 04:57:52 PM
Use AutoCAD's Paste Special.
Title: Re: inserting images
Post by: CottageCGirl on May 11, 2018, 04:58:03 PM
If I'm reading that right, no - there isn't a way to "insert" but not "bind"  :?

You can either reference the original image file (and deal with pathing issues), or you can insert them as a bitmap (and deal with horribly bloated DWG file sizes).

Pathing issues can be mitigated somewhat with relative paths, or project path settings.

BITMAP might be the solution, we move and share files often and the source file often does not end up with the dwg..

will try it
Title: Re: inserting images
Post by: Crank on May 12, 2018, 01:49:42 PM
Use AutoCAD's Paste Special.
Better to use INSERTOBJ
Title: Re: inserting images
Post by: rw2691 on May 13, 2018, 03:38:11 PM
InsertObj worked very well... slick. It handles PDF, DOC, TXT, IMG and XML. But it really packed the memory. A 9kb file, inserting a 900kb jpg, jacked up to 53mb. Quite an overload.

There is an option if that is too much for you. "_imageattach" has a relative folder option. If the image is in the same folder as the DWG (and you send the file with the folder), or it is sent with a subfolder that contains the image, the folders can be copied to anywhere and the DWG file can retrieve it.

Rick
Title: Re: inserting images
Post by: Krushert on May 13, 2018, 07:51:01 PM
working in vanilla Acad, I need to insert images (format is flexible) , but i need to actually INSERT them, not reference them.  We export and share drawings and I really would prefer not to bind them...

is there a way to insert an image but not need to keep the original file in a stable location?    We publish to PDF as well, but I need a way to keep the image with the .dwg file.
You must be working on a GSA project.
Title: Re: inserting images
Post by: CottageCGirl on July 24, 2019, 03:31:45 PM
Hi! I really should get on here more.. just soooo busy.   

InsertObj is working well, except I have one user who , when they insert, the image comes in square and squished no matter what size or shape... is this a setting issue?