Printing Guide
Printing Guide
Printing Guide
|
All operations concerning pen tables can be carried out from the Modify Pen Table dialog box. Sections present in the currently loaded pen table are listed in the Processing Order list box. Its File and Edit menus let you create and edit both new and existing pen tables.
Using settings in the Element Selection Criteria tab of the Modify Pen Table dialog box you can define the parameters for selecting elements in the design file (see Element Selection Criteria). Having set the selection criteria, you can use the settings in the Element Output Actions tab to define the changes required for the printed output (see Element Output Actions).
You can define an individual parameter for element selection and based on that evaluation, specify modification of the identified element in the output file. Similarly, you can evaluate multiple parameters. However, when you specify more than one parameter, they are considered as a boolean AND operation. That is, elements for which you specify multiple parameter values must meet all specified criteria before they will be identified.
For example, if you specify Ellipse as the element type, you can specify one or more types of modifications to be applied to all ellipses in the design file. However, if you specify Ellipse, Level 40, Line weight 2, then only ellipses on level 40 with a line weight of 2 will be affected by the Output Action. All other ellipses in the design will be ignored by this section.
Subsequently, you can define changes that you want to apply to other types of Ellipses on other levels of the design file. Those changes will be applied without affecting the first section of changes. Note that elements modified by the present or previous sections cannot be changed in future sections.
Items in the Modify Pen Table dialog box´s File menu are used to create new pen tables, open existing pen tables, or import AutoCAD CTB/STB files for modification.
File menu item |
Description |
---|---|
New |
Opens the Create Pen Table file dialog box to create a new pen table. |
Open |
Opens the Select Pen Table File dialog box to open an existing pen table. |
Save |
Saves the current pen table file to disk. |
Save As |
Opens the Create Pen Table file dialog box to save the currently loaded pen table under a different name. |
Import |
Opens the Import AutoCAD CTB/STB file dialog box. |
Exit/Unload |
Closes the Modify Pen Table dialog box and unloads the pen table. |
Items in the Modify Pen Table dialog box´s Edit menu are used to create and modify sections in the currently loaded pen table.
Edit menu item |
Description |
---|---|
Insert New Section Above |
Inserts a new section above the currently selected section in the Processing Order list box. |
Insert New Section Below |
Inserts a new section below the currently selected section in the Processing Order list box. |
Rename Section |
Lets you rename the currently selected section. |
Delete Section |
Lets you delete the currently selected section. |
Clear Types |
Clears all element types currently selected. |
Clear Classes |
Clears all element classes currently selected. |
Set All Types |
Selects all element types. |
Set All Classes |
Selects all element classes. |
Each section contains the definition for an individual resymbolization task or a group of related resymbolization tasks. These tasks can be applied to either a single element or a group of elements. In the Modify Pen Table dialog box, the Processing Order list box displays the processing order of the sections that you have defined for the pen table.
Sections let you define resymbolization tasks separately from each other. You can specify virtually an unlimited number of resymbolization tasks of varying degrees of complexity. These resymbolization tasks can apply to any element that, while being similar to others, has at least one characteristic differentiating it from the others.
When creating sections, Element Selection Criteria parameters define the elements to be processed and the Element Output Actions parameters define how the selected elements are treated when printed.
Edit menu item |
Description |
---|---|
Clear Types |
Clears selection of element types. |
Clear Classes |
Clears all element classes currently selected. |
Set All Types |
Selects all element types. |
Set All Classes |
Selects all element classes. |
This list determines the order of processing of sections. As you create sections, they are added to the Processing Order list box. During processing, each element is checked against the first section, then the second section and so on, through to the last section or until a match occurs. Once an element has been modified by a pen table section, it cannot be processed by another section. Therefore, the order of processing is important. When necessary, you can rearrange the order of sections in the Processing Order list.
Settings contained in the Element Selection Criteria tab determine which elements in the design file are selected for processing. You do not have to define all settings. Where a setting is not defined, then all options for that setting are included. For example, if you do not set a color or range of colors, then elements of all colors are selected.
When the active file is a DWG file and a CTB/STB file has been imported, the Use Section Name As Criteria option is available. When you turn on this option, if the pentable section name matches the plot style name on the element, then that criteria is used for the pentable section to match. That is, the pentable section match would be on plot-style, rather than element color or type.
This setting defines the design files that will be selected by the pen table for processing. You can select the active file and any references by their Slot Numbers. References also can be selected by their Logical Names.
Using logical names for references produces more reusable pen tables. For example, you may have a number of design drawing files that use the same references, including the border file, but in different slot numbers. Selecting by logical names ensures that the correct resymbolization occurs for the references, irrespective of their slot numbers.
To identify the master file, you need to use its slot number, which is always zero because it does not have a logical name.
Wild Card |
Used to |
---|---|
(.) |
Match any character. Serves as a single-character wild card. |
(*) |
Match zero or more occurrences of the preceding character. Used in combination with any character or with the single character wild card (.). Automatically includes the root word. |
(+) |
Match one or more occurrences of the preceding character. Used in combination with any character or with the single character wild card (.). Automatically excludes the root word. |
This setting defines the line weights that will be selected by the pen table for processing. When defining the weight parameter for element evaluation, you can key in the values or you can use the Weight button to select the values graphically.
This setting defines the design file levels that will be selected by the pen table for processing. When defining the level parameter for element evaluation, you can key in the values or you can use the Level button to select the values graphically.
This setting defines the element colors that will be selected by the pen table for processing. When defining the color parameter for element evaluation, you can key in the values or you can use the Color button to select the values graphically, via the Select Color dialog box. Colors are displayed as a circular button when not selected, and as a square button when selected.
This setting defines the fill colors that will be selected by the pen table for processing. When defining the fill color parameter for element evaluation, you can key in the values or you can use the Fill Color button to select the values graphically.
This setting defines the line styles that will be selected by the pen table for processing.
Global Actions are completed without regard to section definitions. They are applied across the entire design file and across all levels within the file. Global actions cannot be focused on any specific section. They provide three features for modifying your design´s printed output:
Explode Cells
Text Substitutions
Symbology
Explode Cells must be turned on if you want element selection criteria to be evaluated against individual elements making up the design file´s cells. This is done without regard to the design levels containing the cells or the processing section. If Explode Cells is turned off, only the cell header is considered during element selection criteria evaluation.
You can use the text substitution feature to replace text in your design file for the printed output. This can be with standard text string variables for text items such as the date, time or filename. Proposed replacement strings for the date, time, filename (full and abbreviated) are special strings that are converted to the required information during processing for printing. When specifying these text substitutions, the system provides a suggested actual string. You can place an identical text string in the design file at the position that you want the text substitution. Alternatively, you can amend the actual string to match an existing text string in the design.
In addition, you can replace original “generic” text (text that is not standard design file information, such as date, time and filename) with replacement text strings.
Edit menu item |
Actual string |
Proposed replacement string |
Effect of leaving the proposed replacement string as is |
Insert Abbreviated Filename |
$FILEABBREV$ |
_FILEA_ |
Replaces the actual string with the filename of the active design file. The replacement filename is truncated to the size of the actual string. |
Insert Filename |
$FILE$ |
_FILE_ |
Replaces the actual string with the filename of the active design file. No truncation takes place. |
Insert Date |
$DATE$ |
_DATE_ |
Replaces the actual string with the current date, for example, “22 MAY 95.” |
Insert Time |
$TIME$ |
_TIME_ |
Replaces the actual string with the current time, for example, “22:18:21.” |
The Windows Regional Settings are used to format the time and date for printed output in a locale-sensitive manner. This produces the following results when English (U.S.) is used and the short date is set to mm/dd/yyyy and the time is set to hh:mm:ss tt:
Pen table DATE: 08/23/1999
Pen table TIME: 02:36:05
To maintain the MicroStation pre-version 7.1 format of the printed output for time and date, use the following configuration variables and assign the value “v7.0.”
MS_PENTABLE_DATE_FORMAT
MS_PENTABLE_TIME_FORMAT
Setting these variables to “v7.0” results in the month abbreviation for the pen table date being in mixed cases (such as Jan, Feb) instead of upper case (such as JAN, FEB) as it was previously. If you want to customize the date or time format, you can assign an ANSI C function strftime-compatible format string to any of the following variables. Some of the more common substitution codes are listed below. |
%a |
Abbreviated weekday name (such as Thu) |
%A |
Full weekday name (such as Thursday) |
%b |
Abbreviated month name (such as Nov) |
%B |
Full month name (such as November) |
%c |
Date and time representation appropriate for the locale |
%d |
Day of the month as a integer (00-31) |
%H |
Hour using a 24-hour clock (00-23) |
%I |
Hour using a 12-hour clock (01-12) |
%j |
Day of year as decimal number (001-366) |
%m |
Month as decimal number (01-12) |
%M |
Minutes as decimal number (00-59) |
%p |
AM/PM indicator for the 12-hour clock |
%S |
Seconds as decimal number (00-59) |
%w |
Weekday as a decimal number (0-6 with Sunday as 0) |
%x |
Date representation for current locale |
%X |
Time representation for current locale |
%y |
Two-digit year number (such as 99) |
%Y |
Four-digit year number (such as 1999) |
The entry automatically updates in the pen table when you close this dialog box, edit another string or insert a new string. |
If a replacement string or a portion of a replacement string has the format of a MicroStation configuration macro — that is, $(<text>) — the string undergoes substitution automatically to a preset value. This automatic substitution is called expansion. For example, the string User: $(_USTN_USERNAME) might expand to “User: JohnSmith.” See . If a string in configuration macro format is expanded to another configuration macro, substitution is iterative. That is, it continues until the resulting string does not contain a configuration macro. |
The Symbology toggle serves two purposes. First, it affects whether level override symbology is taken into account when processing color, weight, and style, element selection criteria. Second, it determines whether pen-table-assigned index color, weight, and style output actions take precedence over level override symbology (that is, symbology as set in the Level Manager dialog box when Symbology is set to Overrides).
The symbology toggle may take one of the following two values:
As Stored — The pen table processes your specified element selection criteria against the symbology as it is stored in the element header. ByLevel and ByCell symbologies are resolved to their appropriate values, but level override symbology is ignored. For index-based symbology, if level override symbology is defined and enabled for the view, that symbology will be used for the output. Otherwise, the pen table output action symbology will be honored. Note, however, that pen table colors specified in RGB/grayscale and weights specified in millimeters always are honored, regardless of the global actions symbology mode.
As Displayed — The pen table processes your specified element selection criteria against the symbology as it is currently displayed. ByLevel and ByCell symbologies are resolved to their appropriate values, and level override symbology is honored. The symbology specified in the pen table's output actions always is honored, regardless of whether level symbology is defined or enabled for the view.
For example, take the case of Level "Default" with a level override color of 1 (blue). A shape element with an element header color of 2 (green) is on level "Default". The table below describes how that shape element can be processed under various conditions.
Pen Table symbology mode |
Level Symbology enabled for view |
Color to test against in pen table element selection criteria |
Pen Table element output action color |
Resulting color on the print |
---|---|---|---|---|
As stored |
No |
2 (green) |
Index 3 (red) |
red |
As stored |
No |
2 (green) |
RGB (red) |
red |
As stored |
Yes |
2 (green) |
Index 3 (red) |
blue |
As stored |
Yes |
2 (green) |
RGB (red) |
red |
As displayed |
No |
2 (green) |
Index 3 (red) |
red |
As displayed |
No |
2 (green) |
RGB (red) |
red |
As displayed |
Yes |
1 (blue) |
Index 3 (red) |
red |
As displayed |
Yes |
1 (blue) |
RGB (red) |
red |
Output actions are associated with each pen table section. Output actions specify what is to be done once an element meets the section´s Element Selection Criteria.
Items in the Master Control option menu let you choose whether the element is modified, printed or passed on to a custom BASIC macro, as follows:
Master Control option |
Effect |
---|---|
Allow Additional Processing (default) |
After the other Output Action controls have been applied to the selected element, any loaded MDL applications that desire to process the element further are afforded the opportunity. |
No Additional Processing |
No further processing is performed on the selected element after the other Output Action controls have been satisfied. No MDL applications that desire to process the element are afforded the opportunity. You may find this option useful if you already use MDL applications to process elements during printing. |
Don´t Display Element |
The element is not printed. No MDL applications that desire to process the element are afforded the opportunity. When chosen, the other Output Actions controls are dimmed (disabled). |
Call BASIC Macro Function |
After the other Output Action controls have been applied to the selected element, additional processing is performed by the designated Function in the designated BASIC macro. You should not select Call BASIC Macro Function until your macro is fully prepared. This means you must have already used the BASIC Editor to debug the macro and to define a Pen Table Print Element Hook entry point in your macro. See Macro File . |
(Master Control set to Call BASIC Macro Function only) Indicates that you wish the element to be passed to a function in a MicroStation BASIC macro as an MbeElement. When you choose the Call BASIC Macro Function option, the Macro File button is automatically activated, prompting you to identify the macro source file and the function within.
See Using Macros to Specify Pen Table Output Actions in the MicroStation BASIC Guide for more information about defining BASIC Program Entry Points and debugging Pen Table BASIC programs.
If color, weight, or style resymbolization is specified, in the Element Output Actions tab, and the section also has a BASIC function associated with it, then the specified color, weight and style resymbolizations are applied to the MbeElement object prior to it passing to the BASIC function. As always, the BASIC function then is free to manipulate the element, including overriding the color, weight, and style.
In contrast to the above, if you assign an element priority it takes precedence over any priority assigned by a BASIC function. This exception allows pen tables to execute more efficiently.
This setting lets you determines the order in which elements are printed. The valid range for setting priority is -2147483648 to 2147483647. Priority of elements is determined by the following rules:
Elements with a lower priority value are printed before elements with a higher priority value.
Unprioritized elements are always printed before all prioritized elements.
To make an element meeting certain criteria print before any other elements, you must prioritize all other elements (those that you do not want printed first) in the entire design. To make elements meeting certain criteria print after other elements, you need only prioritize the elements you wish to be printed last.
Do not prioritize elements unless it is significant to the printed output, since prioritized elements require additional processing time and memory.
Using this setting, you can control whether or not filled areas are printed for the selected filled elements, such as text, ellipses, shapes and complex shapes. When you turn on Fill, its option menu lets you choose between:
On — all selected elements are printed as filled.
Off — all selected elements are printed without fill.
When the Fill setting is turned off, the selected filled elements are printed as they appear in the design file.
This setting lets you control the color of the printed output for the selected elements. When you turn on Color, you can select the output color as follows:
By Index — lets you define the color by keying in its value or graphically by clicking the adjacent color tile. This opens a color picker dialog in which you click the required color.
By RGB — lets you define the color by clicking the adjacent color tile, which opens the color picker dialog box. This lets you select the color by color components, by Named Colors, or by clicking a color chart.
Grayscale — specifies that the printed output is in grayscale.
This setting lets you control the color of the printed output of filled areas for the selected elements. When you turn on Color, you can select the output color as follows:
By Index — lets you define the color by keying in its value or you can select the color graphically by clicking the adjacent color tile. In turn, this opens a color picker dialog that lets you click the required color.
By RGB — lets you define the color by clicking the adjacent color tile, which opens the color picker dialog box. This lets you select the color by color components, by Named Colors, or by clicking a color chart.
Grayscale — lets you specify that output is in grayscale.
When you turn on Fill Pattern, you can select the fill pattern from an option menu that lets you select from: Solid, Checker Board, Cross Hatch, Diamonds, Horizontal Bars, Slant Left, Slant Right, Square Dots, Vertical Bars.
Used to “wash-out” a color towards white in the printed output. A 50% screen, for example, moves a color halfway to white. Can be used to save ink, or to de-emphasize elements plotted in that color.
Turning on Width lets you control the line weight of the selected elements in the printed output. You can select the required line weight either:
By Index — which lets you key in a value (0–15) or select the line weight, graphically, from the option menu.
By MM — which lets you key in a dimension in millimeters (from 0mm to 51mm) for the line weight. If the current setting is inches, selecting By MM will convert it to millimeters.
By Inches — which lets you key in a dimension in inches for the line weight. If the current setting is millimeters, selecting By Inches will convert it to inches.
This setting lets you control the line style and the scale of the selected elements. When this setting is enabled, you can key in the required line style or click the Browse button to select the line style via a dialog box. When you choose a custom line style, you can use the Style Scale field to key in a scale value. Turning on Adaptive ensures that dashed lines in the printed output do not display with gaps at vertices.
Used to define the way end caps appear on lines in the printed output. Choices are Round, Square, or Flat.
Used to define the way that line joins appear in the printed output. Choices are Bevel, Miter, or Round.
(Available with the RIP drivers only) With this setting turned on you can set a value from 1 to 99 to make the selected elements transparent in the printed output.
Transparency appears only in the printed output, it is not displayed in the Preview windows. |
To disable pen table processing, you simply unload the pen table.