<?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: Realtive path and vla-attachexternalreference in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12311882#M23068</link>
    <description>&lt;P&gt;glad to have helped...cheers!!!&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 15:24:14 GMT</pubDate>
    <dc:creator>paullimapa</dc:creator>
    <dc:date>2023-10-17T15:24:14Z</dc:date>
    <item>
      <title>Realtive path and vla-attachexternalreference</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12302339#M23063</link>
      <description>&lt;P&gt;Has "&lt;SPAN&gt;vla-attachexternalreference" always attached xrefs with absolute paths, or am I losing my mind?&lt;BR /&gt;&lt;BR /&gt;I swear we've used this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(vla-attachexternalreference mspace filepath xfile InsPt 1 1 1 0 :vlax-True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq doc (vla-get-activedocument (vlax-get-acad-object)))
(setq mspace (vla-get-ModelSpace doc))
(setq filepath (findfile xfile))
(setq xfile (getfiled "Select XREF" (getvar 'dwgprefix) "dwg;pdf" 8))
(setq InsPt (vlax-3d-point 0 0 0))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for years to attach xrefs with RELATIEVE paths.&amp;nbsp;XREFTYPE = 1 and REFPATHTYPE = 1. I get the same results when testing local files and OneDrive/Docs files, but have even tested&amp;nbsp;SECUREREMOTEACCESS = 0.&lt;BR /&gt;&lt;BR /&gt;For now I have a temp fix, but I would rather know if I need to see a doctor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "-XREF" "t" fn "r")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 19:24:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12302339#M23063</guid>
      <dc:creator>DJGinAZ</dc:creator>
      <dc:date>2023-10-12T19:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Realtive path and vla-attachexternalreference</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12302573#M23064</link>
      <description>&lt;P&gt;Yes if you use&amp;nbsp;&lt;SPAN&gt;vla-attachexternalreference to attach an xref then the pathname requirement is always full path regardless of of&amp;nbsp;REFPATHTYPE setting:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-28CB9C44-08E6-47EF-A982-8F505D8C68F6" target="_blank"&gt;https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-28CB9C44-08E6-47EF-A982-8F505D8C68F6&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FYI:&amp;nbsp;XREFTYPE has nothing to do with absolute vs relative path. This controls Attach vs Overlay:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Setting-the-Default-Reference-Type-with-XREFTYPE-Variable.html" target="_blank"&gt;https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Setting-the-Default-Reference-Type-with-XREFTYPE-Variable.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 21:34:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12302573#M23064</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-10-12T21:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Realtive path and vla-attachexternalreference</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12302616#M23065</link>
      <description>&lt;P&gt;Thank you for the reply&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a more elegant&amp;nbsp;way than (command&amp;nbsp;"-XREF" ...) to set the xref path as relative in the process of attaching it, while I have it's ID stored in a Variable? Something&amp;nbsp;that doesn't echo "1 path(s) changed."&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 21:52:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12302616#M23065</guid>
      <dc:creator>DJGinAZ</dc:creator>
      <dc:date>2023-10-12T21:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Realtive path and vla-attachexternalreference</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12302644#M23066</link>
      <description>&lt;P&gt;Instead of using the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;vla-attachexternalreference&lt;/STRONG&gt; function go back to using the basic &lt;STRONG&gt;command&lt;/STRONG&gt; or &lt;STRONG&gt;vl-cmdf&lt;/STRONG&gt; function which do honor the &lt;STRONG&gt;REFPATHTYPE&lt;/STRONG&gt; setting:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(vl-cmdf "_.Xref" "_O" xfile .....)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(command "_.Xref" "_O" xfile ....)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can also test for the current&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;XREFTYPE&lt;/STRONG&gt; setting to determine to use &lt;STRONG&gt;"_O" = 1&lt;/STRONG&gt;&amp;nbsp;vs &lt;STRONG&gt;"_A" = 0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 22:09:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12302644#M23066</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-10-12T22:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Realtive path and vla-attachexternalreference</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12311827#M23067</link>
      <description>&lt;P&gt;Thanks for your help,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;.&lt;BR /&gt;&lt;BR /&gt;I haven't tested the &lt;STRONG&gt;vl-cmdf&lt;/STRONG&gt; approach yet but the basic command is achieving the need at the moment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 15:05:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12311827#M23067</guid>
      <dc:creator>DJGinAZ</dc:creator>
      <dc:date>2023-10-17T15:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Realtive path and vla-attachexternalreference</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12311882#M23068</link>
      <description>&lt;P&gt;glad to have helped...cheers!!!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 15:24:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/realtive-path-and-vla-attachexternalreference/m-p/12311882#M23068</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-10-17T15:24:14Z</dc:date>
    </item>
  </channel>
</rss>

