T-FLEX Parametric CAD. Fundamentals. 2D Design

T-FLEX Parametric CAD. Fundamentals. 2D Design T-FLEX Parametric CAD. Fundamentals. 2D Design

scp.s.scptuj.mb.edus.si
from scp.s.scptuj.mb.edus.si More from this publisher
30.07.2013 Views

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.

<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.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!