Shortcuts
Is it possible to attach a Lisp routine to a keyboard combination ? For instance : for inserting My Logo block with Attributes.Raam.
Comments
-
In V8, I believe it is. I am in the middle of making a new .MNU file, which has all my main menu additions, to append to the .CUI menu. That much works, the addition of ***buttons, ***toolbars etc will be the same as in Autocad but it has been a while since I modified an Acad menu file...
0 -
To assign a lisp routine to a keyboard shortcut do the following:- add your lisp routine to a file called on_doc_load.lsp (if not present already, create the file)- in the Customize dialog "Available Tools" tree, create a new toolbox (e.g. MyTools) (right click to display the context menu) and in this toolbox create a new tool (e.g. InsertLogo) (right click to display the context menu). In the COMMAND property of the new tool refer to the name of you lisp routine.- Under the KEYBOARD tab of the Customize dialog create a new keyboard shcortcut (right click to display the context menu).In the Add keyboard shortcut list select you newly created tool in the Tool ID listbox.- Click the KEY property and press the key combination you want to assign.- Press the OK button on the Customize dialog.
0 -
Forgot one thing: the on_doc_load.lsp file must be copied to the Bricscad program folder, e.g. C:\Program Files\Bricsys\Bricscad
0 -
I've made a few attempts to customize my toolbars, but could never figgure out how to display a custom toolbar. When I try the help file, it says "Not implemented yet".I can right-click to create a new toolbar, and can add commands to it. I tried right-clicking, but can only add, append, or delete the entry.Joe Dunfee
0 -
I am currently updating the Help with the customization topics.The main procedure to create a custom toolbar is:1. Click the Toolbar tab.2. In the left hand pane, select one of the existing toolbars, then right click and choose INSERT TOOLBAR. Type a name for the new toolbar and click the OK button.The toolbar is now added, but still empty.3. Select the new toolbar, right click and choose APPEND TOOL; choose a tool from the drop down list and click the OK button.Repeat to add more tools.If you want to add a custom tool, you must create it first as described in my previous replies.If needed you can modify the behaviour of the tool by editing the COMMAND property.e.g. if you want to draw lines on a dedicated layer, add the line command, then edit the COMMAND properties as follows:^C^CLayer m InteriorWalls;;_LineThis will first make the InteriorWalls layer current, then start the line command (it creates the layer when launched the first time).
0 -
Can't you just issue the CUI command and add (load"XXX");XXX in either the Keyboard or Alias area?The Keyboard panel only seems to allow a fixed group of choices of keys or key combinations, no F12 for instance.Aliases let you make a new plain text command such as "AAA" to load and run a lisp, script etc.Only trouble is, if the standard menus change in future you can't easily merge your customisations, and you can't save your experimental cui routines/additions and go back a step or two - there is only your mods or the standard.I notice a lot of Acad users stick to placing their mods in MNU, MNS or PGP files and append those to the standard set of menus (Menuload), leaving the standard alone. Hoping that avenue is not abandoned in future.I may be using the incorrect descriptions for the places where pull down menus, aliases etc are located or accessed from.
0 -
Apart from the main CUI you can load a number of so called 'Partial CUI' files. The content of such partial cui's will be appended to the content of the main CUI file. Therefore it is recommended to save your custom keyboard shortcuts, toolbars and menus in a separate cui, that you can load as a partial cui. In case default.cui has changed after a major update you can use it without losing your own definitions.
0 -
I had well over 100 customised commands to migrate from V7 - that was not going to happen one entry at a time into the CUI window. I automated it to some extent by cutting from the ICM file and pasting into an empty MNU file.Having done that, the MNU seems the most suitable place to keep my customisations.
0 -
The Load Partial CUI file procedure accepts mnu files, which will be converted to CUI files automatically.
0