Editor Toolbar
, some in
Editor Context Menu
, some in Editor Tab's Context
menu and for more comforting, some located in all those places.
Run
command is located in all places and is accessible from everywhere, as well as, keyboard shortcut F5.
Cut
, copy
, paste
...). Also, Run
command appears as the first command, for more comforting.
Below is the list of commands and a simple word of what they do:
Command | Description | Eq. Shortcut |
---|---|---|
Run | Runs the file that is currently open in editor. | F5 |
Undo | Undo last changes, if available | Ctrl + Z |
Redo | Redo last changes, if available. | Ctrl + Y |
Cut | Cuts selected range of text to clipboard. | Ctrl + X |
Copy | Copies selected range of text to clipboard. | Ctrl + C |
Paste | Pastes text from clipboard to the editor at the caret position. | Ctrl + V |
Selects All | Select all text in the editor. | Ctrl + A |
Comment Selection |
Comments selected range of code in the editor, if no text is selected,
it comments the line that the caret is located at. Typically, puts a # sign at the beginning of each lines.
|
Ctrl + K |
Un-Comment Selection |
un-comments selected range of code in the editor, if no text is selected, it un-comments the line that the caret is located at.
Typically, remove the # sign from the beginning of each line.
|
Ctrl + Shift + K |
Save |
Saves the file that is currently open in the editor. Note that if the content of file is changed, a *
appears next to the tab title.
When you save the file, this * will be removed.
|
Ctrl + S |
Export | Exports the currently open file into two formats, RTF or Html. | Not available |
Zoom | Zoom-in, Zoom-out and reset zoom. Also, you may change zoom by pressing and holding Ctrl and mouse wheel. | Not available |
Print the code file that is currently open in the editor to the printer. | Ctrl + P | |
Display invisible Chars | When you are writing you code, there are some places you pressed Enter key or Space key. This command shows you where you did that. It's is a useful option to reduce the size of file or remove white spaces. | Not available |
Show Document Map | It makes easier to scroll up and down in a large file. By activating this option, a small preview of your file will be appear to the right side of the editor, where you could scroll up and down easily. | Not available |
RUN
, every time. Cypress does it for you.
Options
.
Context Menu Commands
with two exceptions, Add Tcl File
and Open Existing Item
.
You could add Tcl
files to your solution with two options:
Add New Tcl File
or press Ctrl + N, the Add New Tcl File
dialog will be displayed.
In this window, you could add a defined template, if any, or pick a blank file type. If you click on a template in the Template Box
,
you will see a short description of the selected template.tcl
file that is not include as one of your solution files. It will be opened in editor and run as a separated file.
Command | Description | Eq. Shortcut |
---|---|---|
Save |
Saves the file that is currently open in the editor. Note that if the content of file is changed, a * will
appears next to the tab title.
When you save the file, this * will be removed.
|
Ctrl + S |
Save As ... |
Saves the file that is currently open in the editor at different location and/or with a different name. Also
you may change the extension of file to txt where you need.
(tcl and txt file extension are available).
|
Not available |
Close | Closes the file taht is currently open in the editor. | Not available |
Close All But This | Closes all the files that are open in the editor, except current file. | Not available |
Run | Runs current file that is open in editor | F5 |
Open containing Folder | Opens the containing folder of currently open file, with Windows Explorer. | Not available |
Include in solution | This command is available only if the current file is not a member of your solution files. This command adds an external file to your solution and makes it one of its files. | Not available |
IntelliSense is the general term for a number of features: List Members, Parameter Info, Quick Info, and Complete Word. These features help you to learn more about the code you are using, keep track of the parameters you are typing, and add calls to properties and methods with only a few keystrokes. Many aspects of IntelliSense are language-specific.
{
and }
. It helps you
to expand or collapse some part(s) of your code to improve the visibility.
Unfolded if block |
Folded if block |
-
sign will be located every where that code folding option is available. It's just enough to
click that -
sign to fold and +
sign to unfold a block of code.
DOS command prompt
window, Cypress has an advanced internal output console.
You can choose this behavior and switch
between classic and internal console by using Options menu.classic output window
, but with some additional options:
tcl
file that includes one line of code:
puts "Hello word!"So by using
Run
command, we will have:
output console window
could be docked too, where ever you want.
Command | Description | Eq. Shortcut |
---|---|---|
Create New Solution |
Creates a new solution with a blank tcl file on the specified location.
By using this command, Create New Solution dialog will be shown.
After choosing a name for solution, you should specify a location on your hard drive by
clicking on Browse... button.
Warning: Special chars are not allowed for solution name!
Tips: Consider that you want to create a solution named My2D_Braced located at
C:\OpenSeesSolutions\ .
So, set the solution name as My2D_Braced in the name box and browse to C:\OpenSeesSolution . Then
Cypress Editor creates a solution with this absolute path: C:\OpenSeesSolutions\My2D_Braced\My2D_Braced.osproj .After that, all the solution's files located at this path. |
Ctrl + Shift + N |
Open Existing Solution |
Opens an existing solution.
Tips: When you open a solution, all files that you left open in the last session, will be opened on the editor. If there were
not files open in the editor, the startup file will be opened.
Tips: Each solution has a startup file. This file is highlighted and bolded in
Solution Explorer . This is
an entry point of the solution. User may change the startup file of solution.
|
Ctrl + Shift + O |
Open Existing Tcl File | Opens an existing tcl file. This command is helpful when solution does not have file in editor and hence, the toolbar is not accessible. | Not available |
Import SAP2000 Model | This command imports the structures that already modeled in SAP2000. This command is still under construction and coming up on the future versions. | Not available |
Convert to Cypress Solution |
This command converts your old OpenSees files to a CypressEditor solution . By using this command,
Convert to Cypress Solution dialog will be shown.
Tips: You must to put all of your files in a folder, then start convert that folder.
Browse to the folder that contains your old files. All Tcl files will be listed. Choose a name for your solution
and then select a file from left list as the startup file, then click Convert button.If you check the Open this solution after conversation , so current solution will be closed, if any,
and the new converted solution will be replaced.
|
Not available |
Close Current Item | This command closes the currently open file in editor, if any. | Non |
Close Solution | This command closes the current solution and keep CypressEditor open so you may open or create another solution. |
Not available |
Save Current Item | This command saves the currently open file in the editor, if any. | Ctrl + S |
Save Current Item As... |
This command saves the currently open file in the editor as a tcl or txt file format
at the specified path
, if any.
|
Not available |
Save All | This command saves all changed files. | Ctrl + Shift + S |
This command prints the file that is currently open in the editor, to printer. | Ctrl + P | |
Exit Cypress | This command exits application. | Not available |
Windows
commands such as Cut, Copy, Paste, Select All
and so on.
Editor Context menu
section for more info.
Command | Description | Eq. Shortcut |
---|---|---|
Undo | This command is used to undo last changes, if available | Ctrl + Z |
Redo | This command is used to redo last changes, if available | Ctrl + Y |
Cut | This command is used to cut selected range of text and set it to clipboard. | Ctrl + X |
Copy | This command is used to copy selected range of text and set it to clipboard. | Ctrl + C |
Paste | This command pastes text from clipboard to the editor at the caret position. | Ctrl + V |
Select All | This command selects all text in the editor. | Ctrl + A |
Delete | This command deletes selected text in the editor. | Shift + Del |
Find | This command shows the Find Dialog and searches for a specified keyword. |
Ctrl + F |
Replace | This command shows the Replace Dialog and searches for a keyword and replace with another keyword. |
Ctrl + H |
Command | Description | Eq. Shortcut |
---|---|---|
Solution Explorer |
If the Solution Explore pane is closed, this command is enabled.
This command shows the solution explore pane .
|
F2 |
Command Explorer |
If the Command Explore pane is closed, this command is enabled.
This command shows the Command Explore pane .
|
F3 |
Command Help |
If the Command Help pane is closed, this command is enabled.
This command shows the Command Help pane .
|
F4 |
Show Output File |
This command shows the output files, *.txt or *.out in the editor.
So you don’t need to use an external app.
|
Not available |
Command | Description | Eq. Shortcut |
---|---|---|
Expand All | This command expands all node in the Solution Tree View . |
|
Collapse All | This command collapse all node in the Solution Tree View . |
|
Add New Tcl File | This command adds a new tcl file from template, as discussed before. |
|
Delete Selected Item |
This command removes selected item from solution .
Warning: This command could not be undone and hence deleted file never could be recovered!
Tips:
Solution startup file could not be removed. If you want to remove a startup file, first set another
file as the solution startup file, as described next, and then remove that file.
|
|
Rename Selected Item | This command renames selected item in Solution Tree View . |
|
Set as Startup File | This command sets selected item as startup file. | |
Run Solution | This command runs the solution startup file, not selected or opened item. |
Solution Tree View
,
that file will open in the editor or if it is already open in the
editor, so gets focused!
Solution Tree View
will show a pop-up menu that
presents some of the above commands. Extra commands are
located on the pop-up menu that enabled when you right-click at the solution
node, some commands like Add Existing Tcl
or
Properties
.
Option
,
for a pop up menu.Clear Filter
command.Choose Selected Item
command will write the selected command from Command Explorer to the
editor, if editor contains at least one open file. Please note that the selected command will be written at the caret position.We try to add most famous OpenSees commands to the Command Explorer and know this is not including all of them. Please help us to improve the commands list and tell us what commands are lost.
Command Explorer
. When
you select (click) a command from Command Explorer
, related description, syntax and arguments of that command will display in
Command Help
. as well as, a link to the OpenSees Wiki page of that command is included. If you click on the link, the page of
selected command will open on a built-in browse. Thus, even if a command syntax was changed, when user refer to the command page, will know
about changes.
Here is a full view of the program
Section
in a file named WHSection.tcl
and the startup file of your solution
is DampedConcShW.tcl
. By now, WHSection.tcl
is open in the editor.
So, if you use F5
for running the solution
, WHSection.tcl
will be run, but if you use Ctrl + F5, the DampedConcShW.tcl
will be run.
Command | Description | Eq. Shortcut |
---|---|---|
Define Custom Template |
This command allows you to define your own template and use it when you want to add a new tcl file to your solution .
Also
, you could update or remove your templates.
You can define new template by clicking on Add New Template . Then, Define new template dialog will be displayed.
|
|
Change OpenSees.exe Path |
This command defines the OpenSees.exe path for CypressEditor.
CypressEditor does not be able to run tcl files if OpenSees.exe path is not recognized well.
By default, program consider the following path as OpenSees.exe path: C:\tcl\bin\opensees.exeYou should change this path by using Change OpenSees.exe Path command.
|
|
Option | Please read CypressEditor.UI.Options section. |
output console
. This option allows you to use program internal console.Request Code
button and you will receive a message:
Activation Code Box
and click on Activate
button.