Launching Code Editor From ToolbarTechnote 258 Launching Code Editor From Toolbar Using a SmartCAM macro, you can launch a text editor from within SmartCAM. This macro can be run directly or attached to a toolbar as a Macro Button. Historically, SmartCAM had partnered with Predator Software to provide an OEM version of their Predator CNC Editor. This editor could be launched from a toolbar, by using a macro. You can download a copy of this macro, and related icon, using This Link. This macro can be used as a basis for launching your own editor, or for launching a version of the Predator Editor that you have purchased. In either regard, it will likely need a small amount of editing to work properly on your computer. To use the macro/icon download the ZIP file using the previously provided link. Extract the two files
(peditor.mcl and peditor.ico) into a temporary folder. Copy the ICO (icon) file into your SmartCAM
When new major version of SmartCAM are released, the SmartCAMv2021 part of the path changes. As you update your SmartCAM, try to remember to copy the ICO file over into the new ICON folder. For the Macro, create a folder to store the macro. We suggest: Editing the Macro The macro is very straight-forward. There is a variable that is the path to your editor. A variable that is the name of the current NC Code file. And finally, a variable that combines the other two into a command line that is run using the Windows Command Prompt shell.
The only editing that you need to complete is to modify the path contained in the After making the change to the path, run your SmartCAM application. Use Macro - Execute and browse to and run this macro. Make sure it works. If there are any errors, double-check the edits that you made. Adding to Toolbar Once you have verified that your macro works, you can add it to your toolbar. We recommend reviewing the Customizing SmartCAM topic for information on how best to approach this. For current versions of SmartCAM, the overall steps are straight-forward.
Use the ? icon on the Macro Button dialog to see the online help for this dialog. This way you can fill in all the fields.
|
Copyright © 2024 SmartCAMcnc. All Rights Reserved