Contents - Index


Static G Code 

With static G Code insertion, clicking on the appropriate icon results in a static block of code being inserted into the editor after the current cursor line position.



The CSFCgTemplates.XML node <Item> that defines this static code:

<Folder>
    <folder_name>Mill 2</folder_name> 
    <Items>
          .
          .
          .

        <Item> 
            <item_name>Start</item_name>
            <item_type>static</item_type>
            <item_text>G00 G40 G49 G20 G90 </item_text>
            <item_imageidx>1</item_imageidx>
        </Item>
          .
          .
          .

Note the XML element :

<item_name>Start</item_name>
This defines the icon name displayed in the user interface.

<item_type>static</item_type>
This defines this element as a static text to insert.

<item_text>G00 G40 G49 G20 G90 </item_text> .
This element defines the static text that will be inserted into the editor.
To add multiple lines insert "\n" were you desire new lines.
Example:
<item_text>G0 G80 G90 Z4. M9\nG91 G28 Z0\nG91 G28 X0\nG91 G30 Y0 B0\nG90\nM1\nM6\nM30\n%</item_text>

<item_imageidx>1</item_imageidx>
This element defines the image displayed in the user interface.  It is an index into a delphi imagelist.

See  CSFCgTemplates.XML File  for more information.

G Code Templates

Home