QC’s flexibility allow us to work with blocks and customize the user interface to our likes. Besides, we’re able to use small expressions in LISP language to further personalize lists or to run some functions.
This article will show you how to deeply customize some CAD resources to save design time using LISP language.
For example, lets use the CAD commando “osmode” (system variables) to access SnapE predefined values, and the “setvar” function to load the values.
1. Right click over SnapE, under the command window, and select the “Settings…”;
2. Change the geometry and reference options as you like, click “OK”;
3. At the command window, type OSMODE and copy the generated value;
4. Repeat previous steps with other options from step 2.
Now we’ve got the values, let’s create a command for each option generated.
1.Type at the commando window the value _CUSTOMIZE;
2.At the “Customize – Commands” window, click in “Add command” (green + at the right);
3.At the “Name” column, type “SnapE Config 1”
4.At the “Command String” option, type: (setvar “osmode” 15359) (using “15359” as the value returned with the OSMODE previous command).
5.Repeat steps 2, 3 and 4 with the second previously returned value, but changing it’s name to “SnapE Config 2”.
Now we just need to call the command to define the parameters to our liking.
If you want to learn how to create a keyboard shortcut to cast this commands, click this link.