When the user specifies the desired point (or types in the desired radius), the function resumes, and a line is drawn from (5,5) to (7,5), as follows: (command "._circle" "5,5" pause "._line" "5,5" "7,5" "") Also, if the command function is invoked from a menu item, the backslash suspends the reading of the menu item, which results in partial evaluation of the AutoLISP expression.įor example, the following code begins the CIRCLE command, sets the center point at (5,5), and then pauses to let the user drag the circle's radius. However, it is recommended that you always use the PAUSE symbol rather than the explicit use of two backslashes. Contact CAD Studio for feature enhancements.Note: You can use two backslashes ( \\) instead of the PAUSE symbol. Publish it online on other than CADstudio's web servers. 1.0 - first release (2015 Christmas tools)ĪutoExec is a free utility by CAD Studio, do not.You can preset its location by setting the _AE_safefolder variable: (setq _AE_safefolder "C:\\MyFolder\\") History The folder is located by default at: %ROAMABLEROOTPREFIX%\AutoExec" - e.g.:Ĭ:\Users\USERNAME\AppData\Roaming\Autodesk\AutoCAD 2016\R20.1\enu\AutoExec To avoid the "secure load" warning of unsigned macros, add the temporary AutoExec folder to your AutoCAD's "trusted path" settings. The stored macros are completely transparent for standard AutoCAD commands, for processing in AutoCAD LT, during up/down migration of DWG files, or in AutoCADs without AutoExec loaded.Įmbedding a 10kB macro file adds about 10kB to your DWG size. these settings are stored along with the macros inside the DWG file. Any of them can be individually enabled or disabled or set to "Ask to load" You can store up to 9 macros in your DWGs. The ON/OFF state and running foreign macros option are stored in the Registry (per computer/user). Use the "Exec Command" to start a command (perhaps defined by the loaded macro) after you open the DWG drawing - i.e. using the briefcase mechanism in APPLOAD, or using CUI, or by adding the line: (load "APPLOAD.VLX") Usage:ĪutoExec.vlx (the enabler) must be always loaded - e.g. with the TalkingDWG drawing - open it when AutoExec is loaded and then enter any unknown command (have foreign macros enabled in AutoExec options - "just my" disabled). ![]() If you want to update the macro code, delete the macro and add a new one. The "Update" button updates just the command name to run (if any) and its loading options. To insert a new macro, use the button "Load macro" and then click "Add".Īs a protection against possible foreign malicious macros, you can set AutoExec to load and run only your own macros (saved from the same Windows login) - they are marked with an "*" in the list (any change in the code will "unsign" the macro). Then you don't need to install a specific macro on each workstation, just have it embedded in the opened DWG drawing. by dragging to the briefcase icon in _APPLOAD). To automatically run any macro embedded in a DWG file, you will need to have the AutoExec.vlx "enabler" loaded everytime and everywhere (e.g. The AUTOEXEC command can store any LSP/VLX/FAS file into the current drawing.ĭo not use it to store large AutoLISP/VisualLISP programs. It allows to store LISP macros inside DWG drawing files and load or execute them automatically AutoExec enabler - embed LISP macros in AutoCAD DWGs Store and automatically load/execute LISP macros from DWG drawing files AutoExec - embed macros inside DWG filesĪutoExec enabler is a VisualLISP utility for AutoCAD (2004 and higher).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |