|
Setting up a custom line style |
Scroll |
To set up the line style parameters, use the create/edit style dialog. In this dialog box you can create a new custom line style or edit an existing one.
The line style settings include: curve type, color, pen options, and for interrupted lines also parameters of dashes and spacing.
You can specify the line display parameters manually or select an existing style as a template (prototype) for the style being configured. Meanwhile, options are included in the dialog and values appear that correspond to the parameters of the prototype.
If you need the line display parameters or print settings to correspond with the parameters of a system line (primary, thin or thick), please select the corresponding option in the Pen Options group.
You can create continuous and interrupted lines and also lines consisting of repeated images. To do that, add the image fragments when setting up the line style. For more details on creating a line style with fragments, see below.
KOMPAS-3D allows you to create not only continuous and interrupted lines, but also lines that consist of fragments — images that repeat periodically along the length of the line (an example of such a line is shown in the figure).
|
Examples of lines with fragments
You can select the fragments when you set up the line style: in the Description of Intermittent curve group. Dialog for creating/editing line style. You can only insert fragments into an interrupted curve.
|
To simulate a continuous line, set the gap length to zero. |
To add a fragment to a "dash and space" pair, select this pair in the list and click Fragment....
The standard file selection dialog will appear on the screen in which you need to specify the fragment to be included in the line style *.frw (of course, it needs to be prepared in advance).
Then you should specify the position of the image relative to the start point of the dash. Do to that, enter the value of the offset in the direction of the dashes (along the line) in the X field, and enter the value of the asset across the dashes (perpendicular ti the line) in the Y field.
The fragments are included into the line style according to the following rules.
•You can include one fragment into one "dash and gap" pair.
•The origins of the fragment is offset by the specified X and Y values relative to the starting point of the dash in the "dash and space" pair. The fragment cannot be rotated or scaled.
•The fragment origins should fall within the "hatch stroke length + gap length" range (that is, the fragment offset along X should be less than the total length of a "hatch stroke+gap" pair).
•If you embed a fragment into a line style, the link of this fragment to its source file is removed.
To delete a fragment from the line style, please delete the "dash and space" pair containing this fragment.
•The "image" in the line style acquires only curves, solid fills and TrueType captions from the fragment. The letters are transformed into fills.
•Own colors of fills and texts within fragments are ignored. They use the color selected for the hatches of the line style being configured.
•The thickness and color of the “image” lines, depending on the state of the option Ignore fragment line styles (see table. Controls of the Description of Intermittent curve) can coincide with the thickness and color of the hatches in the line style being configured, or they can depend on the line styles used in the fragments.
If the line style contains fragments, these lines are drawn in the documents according to the following rules:
•Fragments located outside the curve are not displayed.
•The fragments are placed in such a manner that the X axis of each fragment would be tangent to the curve in the starting point of the dash.
•The hatches, solid fills and equidistant lines of contours formed using lines with fragments, are plotted without account for fragments.