To return to the previous main menu, use the SETCONFIG command or edit manually the file c:\Users\user\AppData\Roaming\Nanosoft\nanoCAD Pro Int 8.5\Config\cfg.ini. Important note. When you save menu files in the interface editor, they replace the main menu of the nanoCAD platform. In the Properties pane, the macro text is shown in the Keyword parameter. Displaying a macro with a pause symbol in the interface editor 5 shows how our macro looks like if we load the MyTest1.cfg file into the interface editor using the INTERFACE command (or using the menu item Tools > Customize> Interface) and select the MyTest1.cfg file using File > Open.įig. This is a pause signal for user input (there, the CIRCLE command requests the center point).įig.
To illustrate this, let us copy the MyTest.cfg file in MyTest1.cfg rename the MHole500 command to M1Hole500, and change the macro text in the Keyword parameter:Īs compared with the macro in the previous example, there is no center, but there is back slash (\). The 8.5 version, the function of pause processing in macros has been added. Let us expand the task: allow the user himself or herself specify the center point. The macro we wrote is a complex one (it includes three parts). The dropdown menu includes one item which creates a circle with a fixed radius and a fixed center (Fig.
#Autocad lisp line transparency plus#
package files, see the article Customizing the User Interface When Installing Apps For nanoCAD Plus 8.5“.Īfter closing the Startup Suite and Load/Unload Applications and restarting nanoCAD, you will see our MyTest menu in the menu bar (Fig. Here, in the ConfigEntry tag, specify the data about the CFG file, which must be loaded immediately after loading the main nanoCAD core (there must be several tags, if you want to load several CFG files). In the testcfg.package file, which is a XML-file in UTF-8 encoding (it is important!), write the following: Save this file before in the D:\MyLoad folder side by side with MyTest.cfg side by side with MyTest,cfg. In the Startup Suite child window, using the Add button, add the testcfg.package file to the list of autoloaded files. Autoloading testcfg.package using the suite To do this, select the menu item Tools > Application > Load application, and in the Load/Unload Applications, click on the Contents button under the briefcase image (Fig. To simplify loading this menu, let us use the testcfg.package packet file, specifying its name in the startup suite. This macro includes the CIRCLE command and two parameters: 700,600 (the center point coordinates) and 500 (the radius value), which are separated by a semicolon (the equivalent of pressing Enter when running on the command line). This file includes the description of the new MHole500 command with such macro (the s character before is a special one): To create such a menu, you must fill in the menu and commands sections in the MyTest.cfg file: The result of executing a complex menu macro
The user must click on the menu item only one time without the need to enter any other data.įig. The dialog in the command line of such macro is shown in Fig. Complex macro in the menuĪs an example, let’s write a single-item drop-down menu MyTest.cfg (with the Notepad text editor) that creates a round hole of radius 500 in the center point 700,600 in a drawing with the CIRCLE command. In the 8.5 version, the support of macros has been added that can include several commands and parameters, as well as LISP expressions. cfg extension and a structure different from the menu structure ( *.mnu, *.cui, *.cuix) of other CADs.