<?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: Macro Not Found Environment Variable -VBARUN in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/macro-not-found-environment-variable-vbarun/m-p/6460082#M8744</link>
    <description>&lt;P&gt;I made a mistake with the last post. I misread what you are trying to do. The Environ function doesn't use %, just the variable name in quotes. But it can only evaluate in the vba context, not at the command line. The command line can evaluate lisp though. Try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-vbarun (strcat (getenv "appdata") "\\DD\\AC\\2017\\getAttr.dvb!mdlGeneral.setupPaths”)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't tested the syntax, but you should get the idea.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2016 14:52:47 GMT</pubDate>
    <dc:creator>Ed__Jobe</dc:creator>
    <dc:date>2016-07-26T14:52:47Z</dc:date>
    <item>
      <title>Macro Not Found Environment Variable -VBARUN</title>
      <link>https://forums.autodesk.com/t5/vba-forum/macro-not-found-environment-variable-vbarun/m-p/6444239#M8741</link>
      <description>Hi All, I am trying to perform a -vbarun on an environment variable path for a macro I created however im getting an error message 'Marco Not Found'. Below is the path i am putting into the command line, including quotations to allow for spaces in path code: “Environ("APPDATA") &amp;amp; "\DD\AC\2017\getAttr.dvb!mdlGeneral.setupPaths”” The Environment Variable "APPDATA" = C:\Users\username\AppData When I enter the path location in not using the environ variable the macro is found and works fine. C:\Users\username\AppData\DD\AC\2017\getAttr.dvb!mdlGeneral.setupPaths can an environment variable path be used in -vbarun operation? any help would be greatley appreciated thanks, Josh</description>
      <pubDate>Mon, 18 Jul 2016 04:11:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/macro-not-found-environment-variable-vbarun/m-p/6444239#M8741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-18T04:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Not Found Environment Variable -VBARUN</title>
      <link>https://forums.autodesk.com/t5/vba-forum/macro-not-found-environment-variable-vbarun/m-p/6447157#M8742</link>
      <description>&lt;P&gt;Environment variables need to be enclosed in per/cent signs.&lt;/P&gt;&lt;P&gt;Environ("%AppData%")&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 14:23:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/macro-not-found-environment-variable-vbarun/m-p/6447157#M8742</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2016-07-19T14:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Not Found Environment Variable -VBARUN</title>
      <link>https://forums.autodesk.com/t5/vba-forum/macro-not-found-environment-variable-vbarun/m-p/6458949#M8743</link>
      <description>Hi Ed, thanks for your help, but unfortunatley that was not successful. can environment variables be used through the autocad command line? thanks Josh</description>
      <pubDate>Tue, 26 Jul 2016 01:14:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/macro-not-found-environment-variable-vbarun/m-p/6458949#M8743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-26T01:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Not Found Environment Variable -VBARUN</title>
      <link>https://forums.autodesk.com/t5/vba-forum/macro-not-found-environment-variable-vbarun/m-p/6460082#M8744</link>
      <description>&lt;P&gt;I made a mistake with the last post. I misread what you are trying to do. The Environ function doesn't use %, just the variable name in quotes. But it can only evaluate in the vba context, not at the command line. The command line can evaluate lisp though. Try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-vbarun (strcat (getenv "appdata") "\\DD\\AC\\2017\\getAttr.dvb!mdlGeneral.setupPaths”)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't tested the syntax, but you should get the idea.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:52:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/macro-not-found-environment-variable-vbarun/m-p/6460082#M8744</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2016-07-26T14:52:47Z</dc:date>
    </item>
  </channel>
</rss>

