<?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 LP_XMLConverter : problem with &amp;lt;ReplacementDef&amp;gt; in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/LP-XMLConverter-problem-with-lt-ReplacementDef-gt/m-p/285671#M3939</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi everyone,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to edit parameters in a lot of objects with the help of the LP_XMLConverter.&lt;BR /&gt;
So far I've been able to  easily convert the complete library to XML and back to GSM but I struggle with the &amp;lt;ReplacementDef&amp;gt; functionality. In the GLD Center Tips and Tricks section, it is suggested to insert a keyword &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Meaning="xxx"&lt;E&gt;&lt;/E&gt; in the value that one wants to edit and to point to this keyword in the replacement definition that will be used by the LP_XMLConverter&lt;BR /&gt;
The problem is that I cannot insert this keyword in every object. I need another way of doing this directly in the existing code. You can see an abstract of the code I want to edit below. I'd like to change the Value 4.
&lt;PRE&gt;	&amp;lt;PenColor Name="gs_cont_pen"&amp;gt;
			&amp;lt;Description&amp;gt;&amp;lt;![CDATA["Contour Pen"]]&amp;gt;&amp;lt;/Description&amp;gt;
			&amp;lt;Flags&amp;gt;
				&amp;lt;ParFlg_Child/&amp;gt;
			&amp;lt;/Flags&amp;gt;
			&amp;lt;Value&amp;gt;4&amp;lt;/Value&amp;gt;
		&amp;lt;/PenColor&amp;gt;&lt;/PRE&gt;
I tried to write a Replacement Definition like this :
&lt;PRE&gt;&amp;lt;ReplacementDef&amp;gt;
	&amp;lt;ReplacementItem Name="gs_cont_pen" Value="20"/&amp;gt;
&amp;lt;/ReplacementDef&amp;gt;&lt;/PRE&gt;
but with no success. The converter seems to specifically need a "Meaning" keyword.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone here have a solution to this using the LP_XMLConverter?&lt;BR /&gt;
If not, do you know of an efficient way to mass edit xml files on a mac?&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much!&lt;BR /&gt;
&lt;BR /&gt;
Johan&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 22 Apr 2018 10:01:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-22T10:01:16Z</dc:date>
    <item>
      <title>LP_XMLConverter : problem with &lt;ReplacementDef&gt;</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/LP-XMLConverter-problem-with-lt-ReplacementDef-gt/m-p/285671#M3939</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi everyone,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to edit parameters in a lot of objects with the help of the LP_XMLConverter.&lt;BR /&gt;
So far I've been able to  easily convert the complete library to XML and back to GSM but I struggle with the &amp;lt;ReplacementDef&amp;gt; functionality. In the GLD Center Tips and Tricks section, it is suggested to insert a keyword &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Meaning="xxx"&lt;E&gt;&lt;/E&gt; in the value that one wants to edit and to point to this keyword in the replacement definition that will be used by the LP_XMLConverter&lt;BR /&gt;
The problem is that I cannot insert this keyword in every object. I need another way of doing this directly in the existing code. You can see an abstract of the code I want to edit below. I'd like to change the Value 4.
&lt;PRE&gt;	&amp;lt;PenColor Name="gs_cont_pen"&amp;gt;
			&amp;lt;Description&amp;gt;&amp;lt;![CDATA["Contour Pen"]]&amp;gt;&amp;lt;/Description&amp;gt;
			&amp;lt;Flags&amp;gt;
				&amp;lt;ParFlg_Child/&amp;gt;
			&amp;lt;/Flags&amp;gt;
			&amp;lt;Value&amp;gt;4&amp;lt;/Value&amp;gt;
		&amp;lt;/PenColor&amp;gt;&lt;/PRE&gt;
I tried to write a Replacement Definition like this :
&lt;PRE&gt;&amp;lt;ReplacementDef&amp;gt;
	&amp;lt;ReplacementItem Name="gs_cont_pen" Value="20"/&amp;gt;
&amp;lt;/ReplacementDef&amp;gt;&lt;/PRE&gt;
but with no success. The converter seems to specifically need a "Meaning" keyword.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone here have a solution to this using the LP_XMLConverter?&lt;BR /&gt;
If not, do you know of an efficient way to mass edit xml files on a mac?&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much!&lt;BR /&gt;
&lt;BR /&gt;
Johan&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 22 Apr 2018 10:01:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/LP-XMLConverter-problem-with-lt-ReplacementDef-gt/m-p/285671#M3939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-22T10:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: LP_XMLConverter : problem with &lt;ReplacementDef&gt;</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/LP-XMLConverter-problem-with-lt-ReplacementDef-gt/m-p/285672#M3940</link>
      <description>I did not try the coverter with &amp;lt;REPLACEMENTDEF&amp;gt;.&lt;BR /&gt;
When I want to mass edit the xml files, on MAC I use&lt;BR /&gt;
the App "find &amp;amp; replace it!".&lt;BR /&gt;
&lt;BR /&gt;
If the tip comes from the GDL Center website, you should ask the question in the website forum there,&lt;BR /&gt;
because there are the experts from Graphisoft who wrote the tip.</description>
      <pubDate>Sun, 22 Apr 2018 10:43:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/LP-XMLConverter-problem-with-lt-ReplacementDef-gt/m-p/285672#M3940</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2018-04-22T10:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: LP_XMLConverter : problem with &lt;ReplacementDef&gt;</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/LP-XMLConverter-problem-with-lt-ReplacementDef-gt/m-p/285673#M3941</link>
      <description>Well, I tried to do this with &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;MassReplaceIt&lt;E&gt;&lt;/E&gt; (free &amp;amp; opensource) and it worked perfectly!&lt;BR /&gt;
It even let's you save your replacement rules. So you can easily do this again in batch when you update the library in the future. &lt;BR /&gt;
&lt;BR /&gt;
Thanks for your tip Joachim!</description>
      <pubDate>Sun, 22 Apr 2018 11:38:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/LP-XMLConverter-problem-with-lt-ReplacementDef-gt/m-p/285673#M3941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-22T11:38:34Z</dc:date>
    </item>
  </channel>
</rss>

