Support Forum

Combined mouse and command line commands?

User
LayoutEditorFull
Wednesday 5th February 2020
It would be super-useful if one could use the mouse to select some elements, and then type a command that manipulates those elements. For instance, let's say I select four cells, and then I want to copy them with a shift in the X direction of 200µm, using a command like this (I am making this up, and this command doesn't work in LayoutEditor, but it serves to give the idea of what I want): c 0 0 200 0 <Enter> Can something like this be done?
Jürgen
LayoutEditorFull
Wednesday 5th February 2020
For such a manipulation you don't need the command line. You can select the cell reference, call the copy mode (shortcut *c* ) and make a shift left mouse click to enter the displacement as number. The same sequence will work will movement as well. If you want to use the command line the sequence after selected the cell reference is: ``` p 0 0 p 200 0 copy ``` So also here you can combine mouse entry and command line. There is even a feature to combine macro code and mouse entry: You can pause the execution of a macro with a ```layout->macroPause();``` call. The user can make selection with the mouse and continue the execution with the content menu.
Gianmario
20210201
Tuesday 13th October 2020
Thanks a lot. Is there any documentation on the short notation commands?
Gianmario
20210201
Tuesday 13th October 2020
Just a list of existing commands with a short description would be super-useful.
Jürgen
LayoutEditorFull
Tuesday 13th October 2020
There is a list with all shortcuts in the manual: [https://layouteditor.org/info/shortcuts](https://layouteditor.org/info/shortcuts)
Gianmario
20210201
Tuesday 13th October 2020
I need the short notation commands, like the ones briefly mentioned in http://www.layouteditor.net/wiki/CommandLine ``` 1 // creating a box in short notation 2 p 10 20 3 p 30 40 4 box ``` and also mentioned by you, above: ``` p 0 0 p 200 0 copy ```
Jürgen
LayoutEditorFull
Tuesday 13th October 2020
In the command line you can enter any command from the class drawingField in short notation :[https://layouteditor.org/layoutscript/api/drawingfield](https://layouteditor.org/layoutscript/api/drawingfield) Also you can enter any full macro commend. **Examples:** ```cpp p 10 20 p 45 23 pSelect p 23 54 move scaleFull setup::showGrid=false; layers::num[5].name="Layer Number 5"; ```