The replacement delimiters need to be square brackets not curly brackets
This commit is contained in:
parent
0aed8d7433
commit
1a7f5416f2
3 changed files with 10 additions and 4 deletions
|
|
@ -109,8 +109,14 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
{
|
||||
foreach (string name in replaceWithSettingsStrings)
|
||||
{
|
||||
string thingToReplace = "{" + "{0}".FormatWith(name) + "}";
|
||||
gcodeWithMacros = gcodeWithMacros.Replace(thingToReplace, ActiveSliceSettings.Instance.GetActiveValue(name));
|
||||
{
|
||||
string thingToReplace = "{" + "{0}".FormatWith(name) + "}";
|
||||
gcodeWithMacros = gcodeWithMacros.Replace(thingToReplace, ActiveSliceSettings.Instance.GetActiveValue(name));
|
||||
}
|
||||
{
|
||||
string thingToReplace = "[" + "{0}".FormatWith(name) + "]";
|
||||
gcodeWithMacros = gcodeWithMacros.Replace(thingToReplace, ActiveSliceSettings.Instance.GetActiveValue(name));
|
||||
}
|
||||
}
|
||||
|
||||
return gcodeWithMacros;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue