how to clear all macro values appearing in context panel?
Mausumi
New Altair Community Member
Answers
-
Hi,
for a few macros, doubleclick, ctrl + a, delete is doable.
If you have a lot to clean, you could open the XML view (View => Show Panel => XML) and copy the contents of /context/macros to an editor. You can do advanced replacements there, and then you just copy the result back.<macros> <macro> <key>m1</key>
<value>v1</value>
In this example you see that the third key doesn't have a value. So in your editor (capable of regular expression replacement) you would change <value.+/value> to <value/>.
</macro>
<macro>
<key>m2</key>
<value>v2</value>
</macro>
<macro>
<key>m3</key>
<value/>
</macro>
</macros>
Regards,
Balázs0