Jump to content

Leaderboard


Popular Content

Showing most liked content on 07/15/19 in all areas

  1. 1 like
    Move your custom macros under // User Page Macro Definitions it will appear. // HWVERSION_2017.2_Jul 25 2017_20:5:5 /////////////////////////////////////////////////////////////////////////////// // Filename: userpage.mac // Purpose: Macro menu 'User' page definitions. // Version: HyperWorks // Altair Copyright: /////////////////////////////////////////////////////////////////////////////// // User Page Widget Definitions // // Note: Since relative row locations are used, the menu page is built from // the bottom up. // // The following templex test is used to see if the Tcl support buttons // should be added. //{ if ( getenv("HM_DEBUG") == "ON" ) } *createbutton(5, "TkCon ...", -1, 0, 10, BUTTON, "Launch the Tk Console.", EvalTcl, "tkcon.tcl") *createbutton(5, "GUI Toolkit ...", -1, 0, 10, BUTTON, "Launch the GUI Toolkit.", LaunchWidgetTour) *createbutton(5, "ProDebug", 0, 0, 10, BUTTON, "Connect to the TclPro debugger.", ConnectToDebugger) //{ endif } // User Page Macro Definitions *createbutton(5, "Add Washer", -1, 0, 10, BUTTON, "Adds a washer to the existing hole in the mesh.", "EvalTcl", "macroAddWasher.tcl") *createbutton(5,"SaveFile TCL",-1,0,10,GREEN,"Save file using TCL macro", "EvalTcl","E:\vipin\savefile.tcl") /////////////////////////////////////////////////////////////////////////////// *beginmacro("ConnectToDebugger") // Purpose: To connect to a remotely running ProDebug session. // // Note: The pathname to the 'prodebug.tcl' script may need to be // modified to reflect your installation of TclPro. *evaltclstring("source /Program\ Files/tclPro1.4/win32-ix86/bin/prodebug.tcl; debugger_init;",0) *endmacro() /////////////////////////////////////////////////////////////////////////////// *beginmacro("LaunchWidgetTour") // Purpose: Launch the HyperWorks Widget Tour dialog. *evaltclstring("::hwt::WidgetTour",1) *endmacro()
×
×
  • Create New...