Executes DIESEL expression   LTCustomizer21 for AutoCAD LT reference manual

ActiveX
    Function execute_diesel([diesel_expression As String], [check_termination As Boolean = True]) As Boolean
C/C++
   int WINAPI LTC_execute_diesel(const wchar_t *diesel_expression=NULL,BOOL check_termination=TRUE);

parameter
diesel_expression:DIESEL expression
check_termination: if True, waits until ready on AutoCAD LT command line.

return value:
ActiveX:True success. False failure
C/C++: 1: success 0: failure

execute_diesel executes DIESEL expression on AutoCAD LT.

To execute this function, you must modify menu file of AutoCAD LT.

Modification of menu file on AutoCAD LT(LT2013 or later. type of not text file )

  1. Input cui(return) on AutoCAD LT command line. AutoCAD LT displayes dialog box.
  2. Click [mouse] in left tree view window on the dialog
  3. Click " [Ctrl]+[Shift]+Click " in the item
  4. Click [Button 2:Snap Menu] in the item
  5. set "^P$M=$(getenv,__LTC_DIESEL);" at "macro" in upper right "Properties" window

Modification of Old version menu file in AutoCAD/LT

You must edit **AUX4 section in .mns file.
***AUX4
[ LTCustomizer21]^P$M=$(getenv,__LTC_DIESEL);

This means that AutoCAD LT executes content of __LTC_DIESEL when user pushed CTRL+SHIFT+click mouse right button. If you want to allocate section except ***AUX4, edit LTC21.CFG file. For example, if you want to change to ***AUX3 to communicate LTCutomizer21, write following code in LTC21.cfg :

AUX3

Of course, you must edit ***AUX3 section in menu file, too.

Caution:
1. When DIESEL expression doesn't execute properly, input DIESEL expression in __LTC_DIESEL using command()2,etc. Then execute execute_diesel() after first parameter of this function sets NULL(""). Also in case of executing same DIESEL expression many times, this method is effective and quick because execution of setenv is one time.
2. execute_diesel() doesn't execute properly DIESEL expression which contain "^P". Remove "^P".