AddStaticCodeBlockReplacement
AddStaticCodeBlockReplacement('BlockName', 'SearchValue','FORMAT', RelacementValue#)
Description
This command evaluates the number argument and formats it with the specified format, and then finds all instances of the replacement label in the specified block name and replaces the text with the formatted value.
Stats
ID 1023 Type Command Class All Machines Scope Global Min Version 13.8.42
Example
ResetStaticCodeBlockReplacments('TailStockIn') AddStaticCodeBlockReplacement('TailStockIn','%ZCLEAR%', 'Z', OpFieldData#('ZClear')) AddStaticCodeBlockReplacement('TailStockIn','%XCLEAR%', 'X', OpFieldData#('XClear')) AddStaticCodeBlockReplacement('TailStockIn','%ZDIST%', 'Z', OpFieldData#(‘ZDistance’)) OutputStaticCodeBlock('TailStockIn')