T-FLEX Parametric CAD. Fundamentals. 2D Design
T-FLEX Parametric CAD. Fundamentals. 2D Design T-FLEX Parametric CAD. Fundamentals. 2D Design
Creating Custom Lines and Hatches When creating a pattern, one can use graphic elements of different color and different width. However, the color and width of a graphic line created from a custom type can be modified only if the whole pattern uses the same color and line width. The line elements may be of a quite complex shape. When a hatch is created based on graphic lines of a custom type, the hatch contour will not follow the line shape by default; instead, it will be composed of line segments passing through the characteristic points of the line elements. To make the hatch contour exactly follow the line or assume other arbitrary shape, you would need to specify additional 2D paths with special names in the line pattern drawing defining the hatch contour route. The paths are created separately for each line element. Each path must lie on the same page as the respective line element. The path must start and end at characteristic nodes of its element and be named as one of the following: “Polyline” – the path of the periodical part, “TailPolyline” – the start path, “HeadPolyline” – the end path, and “CenterPolyline” – the path of the center part. Working with Custom-type Line To start using a created line type, simply place the line pattern file in the folder …\Program\LinePatterns. Upon restarting T-FLEX CAD, the line types found in this folder will be automatically added to the lists of line types in 2D commands. To delete a custom line type, simply delete the pattern drawing file from …\Program\LinePatterns and restart T-FLEX CAD. When using a custom line type in a document, the line pattern is saved with that document. Relation with the source file is lost at this point. Therefore, when porting a document file to a computer without the given line type, the image does not get lost. When porting a document containing custom line types to a computer with existing line type pattern under the same name, the line image stays unchanged in the form of the image saved in the document. To update a line image, you would need to redefine its type over again. To make an update, all you need is to bring up the parameters dialog box for one of the lines and confirm the existing value. New graphic lines of the same type that will be created in this document will take on the current pattern. Example of Creating Custom Line Let’s review custom line creation on a simple example. We will create the line pattern shown on the figure. First of all, let’s decide on the elements to be included in this line. The figure features: the periodical part – interlaced crosses and segments; center part entered just once – the text “Test”; start and end as special symbols. Periodic part Start Center part End To create the pattern, let’s open a new 2D drawing (the command “FN: Create New Model”). Description of each line element shall be placed on a separate page of the document. We will create four pages in the pattern document. For working convenience, each page can be renamed according to its purpose. To create or rename document pages, use the command “PG: Pages”. When creating descriptor drawings of line types, one can use either use simple sketched lines, or graphic lines snapped to construction lines. For simplicity, we will use free-hand sketching. 703
Fundamentals. Two-Dimensional Design 704 We will begin creation of a line pattern from the main element – the periodic part. The descriptor of the periodic part will be the drawing depicting the cross with two strokes, on either side. The points at which this part connects to its neighboring line pieces are marked by the named nodes, “Start” and “End”, as shown on the diagram. A node name is defined by the command “EN: Edit Node”, the path name – by the command “EC: Edit Construction”. The lines constituting the periodical part can be of various types, color and width, depending on the desired appearance of the custom line. In this example, the crosses on the line ought to be blue. Therefore, we will make the cross strokes blue, while the lateral strokes - black. Next, we need to decide whether to prescribe the path for hatches. Suppose, this line may be used in the future for creating hatches, so that the hatch or fill lines are not allowed to overlap the cross strokes. For this purpose, we will create a named path, “Polyline”, starting and ending in the named nodes “Start” and “End” and passing as shown on the figure. After describing the periodical part, let’s proceed to creating the next line element – the center part. To create it, we need to switch to another page of the pattern template. The pattern’s center part will include the text “Test” with two strokes on either side. The text can be created by any text entity type (the command “TE: Create Text”). The start and end of the center part are defined by the named nodes “CenterStart” and “CenterEnd”. Additionally, we will create a named path “CenterPolyline” for hatches based on this line, as shown on the figure. Similarly, we will create description of the tail and head of the line on separate pages, as shown on the figure. We will have to use a hatch to create the filling. No additional paths for hatches will be created. In this case, the contour of a hatch bounded by this line type will follow the lines connecting the border nodes of these line elements. What is left to do before using the created template is to save it in the folder …\Program\ LinePatterns under the name “Custom line sample.grb” and restart T-FLEX CAD. After restarting, the new line with this name will appear in the list of line types. It can be used just like a standard line type.
- Page 653 and 654: Fundamentals. Two-Dimensional Desig
- Page 655 and 656: Fundamentals. Two-Dimensional Desig
- Page 657 and 658: Fundamentals. Two-Dimensional Desig
- Page 659 and 660: Fundamentals. Two-Dimensional Desig
- Page 661 and 662: Fundamentals. Two-Dimensional Desig
- Page 663 and 664: Fundamentals. Two-Dimensional Desig
- Page 665 and 666: Fundamentals. Two-Dimensional Desig
- Page 667 and 668: Fundamentals. Two-Dimensional Desig
- Page 669 and 670: Fundamentals. Two-Dimensional Desig
- Page 671 and 672: Fundamentals. Two-Dimensional Desig
- Page 673 and 674: Fundamentals. Two-Dimensional Desig
- Page 675 and 676: Fundamentals. Two-Dimensional Desig
- Page 677 and 678: Fundamentals. Two-Dimensional Desig
- Page 679 and 680: Fundamentals. Two-Dimensional Desig
- Page 681 and 682: Fundamentals. Two-Dimensional Desig
- Page 683 and 684: Fundamentals. Two-Dimensional Desig
- Page 685 and 686: Fundamentals. Two-Dimensional Desig
- Page 687 and 688: Fundamentals. Two-Dimensional Desig
- Page 689 and 690: Fundamentals. Two-Dimensional Desig
- Page 691 and 692: Fundamentals. Two-Dimensional Desig
- Page 693 and 694: Fundamentals. Two-Dimensional Desig
- Page 695 and 696: Fundamentals. Two-Dimensional Desig
- Page 697 and 698: Fundamentals. Two-Dimensional Desig
- Page 699 and 700: Fundamentals. Two-Dimensional Desig
- Page 701 and 702: Fundamentals. Two-Dimensional Desig
- Page 703: Fundamentals. Two-Dimensional Desig
- Page 707 and 708: Fundamentals. Two-Dimensional Desig
- Page 709 and 710: Fundamentals. Two-Dimensional Desig
- Page 711 and 712: Fundamentals. Two-Dimensional Desig
- Page 713 and 714: Fundamentals. Two-Dimensional Desig
- Page 715 and 716: Fundamentals. Two-Dimensional Desig
- Page 717 and 718: Fundamentals. Two-Dimensional Desig
- Page 719 and 720: Fundamentals. Two-Dimensional Desig
- Page 721 and 722: Fundamentals. Two-Dimensional Desig
- Page 723 and 724: Fundamentals. Two-Dimensional Desig
- Page 725 and 726: Fundamentals. Two-Dimensional Desig
- Page 727 and 728: Fundamentals. Two-Dimensional Desig
- Page 729 and 730: Fundamentals. Two-Dimensional Desig
- Page 731 and 732: Fundamentals. Two-Dimensional Desig
- Page 733 and 734: Fundamentals. Two-Dimensional Desig
- Page 735 and 736: Fundamentals. Two-Dimensional Desig
- Page 737 and 738: Fundamentals. Two-Dimensional Desig
- Page 739 and 740: Fundamentals. Two-Dimensional Desig
- Page 741 and 742: Fundamentals. Two-Dimensional Desig
- Page 743 and 744: Fundamentals. Two-Dimensional Desig
- Page 745 and 746: Fundamentals. Two-Dimensional Desig
- Page 747 and 748: Fundamentals. Two-Dimensional Desig
- Page 749 and 750: Fundamentals. Two-Dimensional Desig
- Page 751 and 752: Fundamentals. Two-Dimensional Desig
- Page 753 and 754: Fundamentals. Two-Dimensional Desig
<strong>Fundamentals</strong>. Two-Dimensional <strong>Design</strong><br />
704<br />
We will begin creation of a line pattern from the main element – the periodic part. The descriptor of the<br />
periodic part will be the drawing depicting the cross with two strokes, on either side. The points at which this<br />
part connects to its neighboring line pieces are marked by the named nodes, “Start” and “End”, as shown on<br />
the diagram.<br />
A node name is defined by the command “EN: Edit Node”, the path name – by the command<br />
“EC: Edit Construction”.<br />
The lines constituting the periodical part can be of<br />
various types, color and width, depending on the<br />
desired appearance of the custom line. In this<br />
example, the crosses on the line ought to be blue.<br />
Therefore, we will make the cross strokes blue,<br />
while the lateral strokes - black.<br />
Next, we need to decide whether to prescribe the<br />
path for hatches. Suppose, this line may be used<br />
in the future for creating hatches, so that the hatch<br />
or fill lines are not allowed to overlap the cross strokes. For this purpose, we will create a named path,<br />
“Polyline”, starting and ending in the named nodes “Start” and “End” and passing as shown on the figure.<br />
After describing the periodical part, let’s proceed to creating the next line element – the center part. To create<br />
it, we need to switch to another page of the pattern template.<br />
The pattern’s center part will include the text<br />
“Test” with two strokes on either side. The text<br />
can be created by any text entity type (the<br />
command “TE: Create Text”). The start and end<br />
of the center part are defined by the named nodes<br />
“CenterStart” and “CenterEnd”. Additionally, we<br />
will create a named path “CenterPolyline” for<br />
hatches based on this line, as shown on the figure.<br />
Similarly, we will create description of the tail and<br />
head of the line on separate pages, as shown on<br />
the figure. We will have to use a hatch to create<br />
the filling.<br />
No additional paths for hatches will be created. In<br />
this case, the contour of a hatch bounded by this<br />
line type will follow the lines connecting the<br />
border nodes of these line elements.<br />
What is left to do before using the created<br />
template is to save it in the folder …\Program\<br />
LinePatterns under the name “Custom<br />
line sample.grb” and restart T-<strong>FLEX</strong> <strong>CAD</strong>.<br />
After restarting, the new line with this name will<br />
appear in the list of line types. It can be used just<br />
like a standard line type.