Sheets are very useful, but FastCAD lacks a few commands dealing with sheets.
Displaying the current sheet name
The current sheet name is not displayed on the status bar. All the sheet commands that change the active sheet will display what sheet is activated in the track section (to left on the status bar). The sheet name will be displayed until the next FastCAD command is activated.
You can use the SSHOWNAME if you like to see what sheet that is currently active
Go to next or previous sheet
You can step to the next or previous sheet using the commands SNEXT and SPREV.
If you have "Auto hide all sheets except current and COMMON" turned on, you will get the next or previous sheet in the list. The old sheet will be hidden and the new sheet will of course be visible. If the auto hide option is turned off the next (or previous) visible sheet will be activated.
Show or hide all sheets
You can hide all sheets except the current and common sheet via the "Auto hide all sheets except current and COMMON" option, but there is no fast way to show all of them again.
The show all sheets (SSHOWA) and hide all sheets (SHIDEA) in Optima, will turn of the auto hide option and set all sheets except the current and common to be visible or hidden.
Set active sheet
FastCAD only offers one method to set the active sheet and that is via the SHEET dialog box. Optima adds two new methods for you.
Set sheet by name
Set sheet by name (SSET) is most useful for menu and macro customizations. The command will prompt you for a sheet name and set that name if the sheet exists.
Set sheet by pattern
Set the same sheet as another object (SSETP). Just select the pattern object and that sheet is set active. This command is actually an example of what multi change can do, it is just a shortcut to MCHANGEPC 1;
Hide sheet
FastCAD includes a command to hide a sheet given its name (HIDESHT), so Optima only adds a command to hide sheet by pattern (SHIDEP). The sheet of the selected pattern object will be hidden.
Get sheet name
There is a function for macro programmers to retrieve the current sheet name. The SGETNAME function will take a macro variable to store the current name in. If the common sheet is active "Common (not on any sheet)" is stored.
Create sheet book
Finally is here a command to import drawing into sheets that are created automatically. You will have to create a bookmark file with the drawings to convert into one drawing with each of the drawings on different sheets.
Three ways to create a bookmark file
- The FastCAD bookmark command - Bookmarks are normally created with the BOOKMARK command in FastCAD, see the FastCAD documentation for more information. This is the easiest way to do it if you only have a few files to add.
- FastCAD NED editor - NED is shipped with FastCAD DOS and with the XP development toolkit (free download from the FastCAD web-site). It has a feature to import a directory listing, which is useful. Try this:
- Start Ned with a new file, like ShtTest.bkm
- Press ESC (brings up the menu) and D (Dir insert), specify the FastCAD directory and a filemask: C:\FCAD32\*.FCW
- Press ESC (brings up the menu) and P (Prefix), and give the directory again C:\FCAD32\ or just a # and press A for all.
- Press ESC (brings up the menu) and E to exit and save the file
This is useful to import all files by a file mask and you already have NED installed.
- With the DOS dir command - It is easy to create bookmark files from the DOS-prompt using the DIR command. To create the same file as in the example above, try this:
DIR /B /S C:\FCAD32\*.FCW > ShtTest.bkm
The flag /B causes the output to only be filenames and the flag /S includes all sub directories. You need to use /S to get the whole path to the file as a side effect of this you will also get all sub-directories.
This method is most useful if you actually want to include all sub directories.
Create the book drawing
To create the book drawing, you have to do three simple steps:
- Start a new drawing with NEW (if you don't want to add the sheets to the current drawing)
- Run SBOOK and select the bookmark file to use. You will get a blue list box telling you any error messages.
- Save the drawing new drawing.
A little more advanced options
Even though SBOOK accepts bookmark files, they don't have to be simple bookmark files, there are a couple of more options as well.
- The filename listed on each row in the bookmark file can be any valid FastCAD filename (names that LOADM accepts). Most useful is the use of # for the FastCAD home directory.
- The sheet name doesn't have to the same as the filename. By adding a | (pipe) directly after a filename in the "bookmark" file, you can type the sheet name directly after the pipe. Example which will assign the name Logotype to the Fcdlogo.fcw file:
#Fcdlogo.Fcw|Logotype
- The file order in the bookmark file decides the order in the generated book file. Just reorder the files to get the sheets in the order you prefer.
An example to try
Included in the installation is a file called SBOOK_EX.BKM. If you have installed the example drawings with FastCAD you can try to import that file as an example.
Copy to visible sheets
The command will copy the selected entities to all visible sheets. If the source entities not are on the common sheet they
will be duplicated. The recommended use is to draw the entities on the common sheet, distribute them to the target sheets and
then delete them from the common sheet.
Front (on this sheet) and Back (on this sheet)
The ordinary FastCAD FRONT and BACK commands ignore sheets. The front and back commands in Optima, will put
the entities in the front or in the back on the current sheet. If any entity is on another sheet than the current it will
be moved to the current sheet.
Commands: |
SNEXT |
Go to next sheet |
SPREV |
Go to previous sheet |
SSHOWA |
Show all sheets |
SHIDEA |
Hide all sheets |
SSHOWNAME |
Show current sheet name |
SSET |
Set sheet by name |
SSETP |
Set sheet by pattern |
SHIDEP |
Hide sheet by pattern |
SBOOK |
Create a sheet book from a bookmark file |
COPYVIS |
Copy to visible sheets |
SFRONT |
Front (on this sheet) |
SBACK |
Back (on this sheet) |