<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Macro: automatically exporting the sym_xml after build</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/54759cb895/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/54759cb895/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/54759cb895/</id><updated>2020-02-27T20:39:36.795000Z</updated><subtitle>Recent posts to Macro: automatically exporting the sym_xml after build</subtitle><entry><title>Macro: automatically exporting the sym_xml after build</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/54759cb895/?limit=25#4a50" rel="alternate"/><published>2020-02-27T20:39:36.795000Z</published><updated>2020-02-27T20:39:36.795000Z</updated><author><name>Rigor69</name><uri>https://forge.codesys.com/u/rigor69/</uri></author><id>https://forge.codesys.com345b960caeb728073056d5f2008fa8ef9e1a9901</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi!&lt;br/&gt;
I'm trying to create a macro to handle export of the *.SYM_XML file so that i can always keep a fresh copy of this at a central location.&lt;br/&gt;
As the ABB AC500 solution packs all project files into a .project archive, i cannot have easy access to the symbol files when project is closed.&lt;br/&gt;
Simple file copy via macro works fine, but when i try to use the variables it does not seem to work as expected. I guess the $COMPILE_DIR$ type variables makes no sense to console commands to OS.&lt;br/&gt;
I do not want to have a fixed path as its a mess to maintain.&lt;/p&gt;
&lt;p&gt;I think you can see below what i try to do:&lt;br/&gt;
MACRO&lt;br/&gt;
MacroName: 'sym_exp'&lt;br/&gt;
MacroMenu: 'Export sym_xml'&lt;br/&gt;
MacroCmd: ';&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;'&lt;br/&gt;
MacroCmd: ';&lt;em&gt;           symbol file export                    &lt;/em&gt;'&lt;br/&gt;
MacroCmd: ';&lt;em&gt;            use in post build                    &lt;/em&gt;'&lt;br/&gt;
MacroCmd: ';&lt;em&gt;                                         &lt;/em&gt;'&lt;br/&gt;
MacroCmd: ';&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;/strong&gt;'&lt;br/&gt;
MacroCmd: 'system echo ON'&lt;br/&gt;
MacroCmd: 'system copy "$COMPILE_DIR$*.sym_xml" "$PROJECT_DRIVE$\$PROJECT_PATH$\"'&lt;br/&gt;
MacroCmd: 'system pause'&lt;br/&gt;
END_MACRO&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>