<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Program to update Raster Image file path in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12445023#M20487</link>
    <description>&lt;P&gt;Ldata as suggested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(vlax-ldata-put "IMAGES" "PATH" "Photos\\Xref Photo"))

(setq imagepath (vlax-ldata-get "IMAGES" "PATH"))
&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 16 Dec 2023 04:52:05 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2023-12-16T04:52:05Z</dc:date>
    <item>
      <title>Program to update Raster Image file path</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12439638#M20481</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to teach myself AutoLISP solely to fix the pesky issue of my raster images being blown in my projects every time I open them. The only thing I have been able to find was the use of the (-image) command and action recorder. Because you need to know the name or file path already within (-image) instead of just selecting on the wanted image, I have been trying to make a program that stores the image name and current file path from selection and then inputs it into the (-image) command. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After typing -image in command prompt, you are given a list of options. The actrecord will select the Path option. From there when you are prompted to insert a new file path (in this case its the exact same because they're blown images), the program will take the stored file path and input it there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know its a lot but searching through as many forums I can get, this might be the best way. If not, I would love to hear your opinions on how best to go about fixing these broken raster images.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 20:19:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12439638#M20481</guid>
      <dc:creator>tcoley95E9Z</dc:creator>
      <dc:date>2023-12-13T20:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Program to update Raster Image file path</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12439647#M20482</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14078507"&gt;@tcoley95E9Z&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;...solely to fix the pesky issue of my raster images being blown in my projects every time I open them.....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does that mean please? Pathing for images is the same as pathing for XREFs, you always want to ensure they are live when you open a DWG file with them in it.&lt;/P&gt;
&lt;P&gt;Explain when you can the entire process (where you store the images compared to the DWG files, what pathing if any do you actively set them to be) and we can help you just fix it once and for all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 20:25:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12439647#M20482</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2023-12-13T20:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Program to update Raster Image file path</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12439688#M20483</link>
      <description>Sorry about that,&lt;BR /&gt;&lt;BR /&gt;We use a shared cloud for all of our images so often times we have to deal with our raster images being 'not found' despite the same file path. It gets really tedious with bigger projects. I know that most times AutoCAD will have an option to apply same file path to other broken images but sometimes that doesn't work either.&lt;BR /&gt;&lt;BR /&gt;The pathing I set them to be is the exact same. That's why I want the program to store the current images file path as a variable I can call to it when I'm prompted (from -image) to update the images path</description>
      <pubDate>Wed, 13 Dec 2023 20:41:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12439688#M20483</guid>
      <dc:creator>tcoley95E9Z</dc:creator>
      <dc:date>2023-12-13T20:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Program to update Raster Image file path</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12439953#M20484</link>
      <description>&lt;P&gt;You can store information in a dwg I would look at LDATA, for this. Just Google "Ldata Autocad lisp".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes have lost images because the image was stored on local drive, not server, we always saved images to same location as dwg so much easier.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 22:54:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12439953#M20484</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-12-13T22:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Program to update Raster Image file path</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12441206#M20485</link>
      <description>Thanks! I'll check it out</description>
      <pubDate>Thu, 14 Dec 2023 14:08:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12441206#M20485</guid>
      <dc:creator>tcoley95E9Z</dc:creator>
      <dc:date>2023-12-14T14:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Program to update Raster Image file path</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12441214#M20486</link>
      <description>Looking back today, I see that for whatever reason, the XREF file path is consistent except for the first few directories. Ex:&lt;BR /&gt;&lt;BR /&gt;..\..\..\..\..\Photos\Xref Photo&lt;BR /&gt;&lt;BR /&gt;Do you know of any code that can copy this current directory? I think the best way to go about it is to store the above directory and then call it with the missing paths. Kind of like this:&lt;BR /&gt;&lt;BR /&gt;"C:\Users\foo\" + [stored variable]</description>
      <pubDate>Thu, 14 Dec 2023 14:11:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12441214#M20486</guid>
      <dc:creator>tcoley95E9Z</dc:creator>
      <dc:date>2023-12-14T14:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Program to update Raster Image file path</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12445023#M20487</link>
      <description>&lt;P&gt;Ldata as suggested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(vlax-ldata-put "IMAGES" "PATH" "Photos\\Xref Photo"))

(setq imagepath (vlax-ldata-get "IMAGES" "PATH"))
&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 16 Dec 2023 04:52:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12445023#M20487</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-12-16T04:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Program to update Raster Image file path</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12448673#M20488</link>
      <description>Thanks! How would I incorporate this to my code? I apologize I'm very new to autoLISP.&lt;BR /&gt;&lt;BR /&gt;For instance, if I wanted to update the raster image path by selection, would the "IMAGES" reference in vlax-ldata-put be replaced with my ssget?</description>
      <pubDate>Mon, 18 Dec 2023 17:21:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/program-to-update-raster-image-file-path/m-p/12448673#M20488</guid>
      <dc:creator>tcoley95E9Z</dc:creator>
      <dc:date>2023-12-18T17:21:34Z</dc:date>
    </item>
  </channel>
</rss>

