
                          [gcp_macro_to_clipboard.htm]

                            --- APPLICATION NOTES ---

                       Author: Robert Cowan, PE 03/26/2007
                       
  *  The accompanying .htm file using Javascript demonstrates how parametric
     GCP programming can be performed with output being placed in the Windows
     clipboard for retrieval by General Cadd.  Retrieval is via the 'KP' command, 
     'Paste:Text' from the 'Edit' pull down menu, or even CTL-V (Paste).
                        
  *  Using a new GCP functionality, if any line in the text on the clipboard
     contains "GCP_MACRO" (no quotes) GCP will interpret the clipboard text
     as a macro.  Otherwise it will interpret it as a text block to be placed 
     in the drawing file.

  *  The basic structure of the .htm file can be used to create other useful
     applications as long as the user has some understanding of HTML/Javascript.

 
                          --- HOW TO USE THE PROGRAM ---

  *  Place the file (gcp_macro_to_clipboard.htm) in your C:\General Cadd 5\Plugins
     subdirectory.

  *  Close, then restart General Cadd 5.

  *  If you look at the Plugins pull down menu, this file will show there now.

  *  Double click on it and it will open in a browser.  Click 'Calculate -and- Copy to Clipboard'.

     NOTE: This was written for Internet Explorer and may not run in Firefox without 
     changing security settings. Another way would be to manually 'Copy' the text
     box by placing your cursor in the box, pressing CTL-A to mark everything, 
     then CTL-C to place it on the clipboard.    

  *  Switch back to the General Cadd window and press 'KP' or select 'Edit-Paste:Text' pull down.

  *  You should see a rectangular shape with four holes and rounded corners.

  *  Go back to browser window and change values such as making horizontal spacing = 20.

  *  Press 'Calculate' again, switch back to General Cadd and enter 'KP' command.

  *  NOTE:  To view the HTML/Javascript program when in the browser window, go to 'View-Source'.

  *  The text window is editable and can be sent to the clipboard without 
     calculation by the second button labeled 'Copy to Clipboard ONLY (if edited)'.
     This allows 'tweaking' of the macro or even new macro creation if desired.

  *  View the HTML program by selecting 'View->Source' from your browser's pull-down menus.

  *  LASTLY, HAVE FUN WITH IT!! 

  *  Email the author with questions/comments: rdcowan@cowan.us   

