AddStaticCodeBlockReplacement: Difference between revisions
Jump to navigation
Jump to search
Created page with "==AddStaticCodeBlockReplacement('BlockName', 'SearchValue','FORMAT', RelacementValue#)== {{Description|description= This command evaluates the number argument and formats it ..." |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
===Example=== | ===Example=== | ||
[[ResetStaticCodeBlockReplacments('TailStockIn') | [[ResetStaticCodeBlockReplacments]]('TailStockIn') | ||
[[ | [[AddStaticCodeBlockReplacement]]('TailStockIn','%ZCLEAR%', 'Z', [[OpFieldData]]#('ZClear')) | ||
[[ | [[AddStaticCodeBlockReplacement]]('TailStockIn','%XCLEAR%', 'X', [[OpFieldData]]#('XClear')) | ||
[[ | [[AddStaticCodeBlockReplacement]]('TailStockIn','%ZDIST%', 'Z', [[OpFieldData]]#(‘ZDistance’)) | ||
[[OutputStaticCodeBlock]]('TailStockIn') | [[OutputStaticCodeBlock]]('TailStockIn') | ||
Latest revision as of 21:07, 29 June 2020
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')