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

Hatches Creating Custom Lines and Hatches T-FLEX CAD allows creating custom hatch types along with custom graphic line types. To add a custom hatch type to the system, place the file with a hatch pattern in the folder …\Program\HatchPatterns. Upon restarting T-FLEX CAD, the new type will appear in the list of hatches “by pattern”. To remove a custom hatch type, simply delete its pattern file from …\Program\HatchPatterns and restart T-FLEX CAD. Creating Hatch Template A pattern file is a T-FLEX CAD drawing complying with certain rules. It must contain the image of the hatch pattern composed of nodes, graphic lines, text and hatches, as well as construction elements. The start point of the hatch is defined by a special node named “Center”. This node is mandatory in the hatch pattern. To make a given pattern repeat multiple times when filling the hatch contour, additional named nodes must be defined in the pattern that would define the direction and step of the pattern repetition. The node defining the first hatch direction must be named «StepX»; the node defining the second direction – «StepY». The direction-defining nodes are optional. In the case either of them is not defined, the pattern will be drawn just once in the respective direction. Working with Custom Hatches When using a custom hatch type in a document, the hatch 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 hatch type, the image does not get lost. When porting a document containing custom hatch types to a computer with existing hatch type pattern under the same name, the hatch image stays unchanged in the form of the image saved in the document. To update a hatch 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 hatches and confirm the existing value. New hatches of the same type that will be created in this document will take on the current pattern. Examples of Creating Simple Hatches To create a custom hatch pattern, let’s open a new document (the command “FN: Create New Model”). 705

Fundamentals. Two-Dimensional Design 706 In the opened document, create the image of a hatch pattern as shown on the figure. Make sure to put an additional node on the drawing, named “Center”, which must be present on a hatch pattern. The drawing created in this way can already be identified by the system as a custom hatch template. All that needs to be done is saving the file in the folder …\Program\HatchPatterns (for example, under the name “Custom hatch sample.grb”) and restart T-FLEX CAD. However, since no direction nodes are defined in the pattern, an actual hatch created from this pattern will contain just a single instance of the hatch. To make the sample defined in the hatch pattern repeat in one direction, you would need to create the respective named node in the pattern, as, for example, “StepX”. The position and step of the node will define the step and repetition direction of the pattern sample. Two named nodes – “StepX” and “StepY” − would allow defining repetition of the pattern sample in both directions. By varying the position of the direction nodes with respect to the “Center” node, one can obtain various hatch appearances all based on the same pattern.

Hatches<br />

Creating Custom Lines and Hatches<br />

T-<strong>FLEX</strong> <strong>CAD</strong> allows creating custom hatch types along with custom graphic line types. To add a custom<br />

hatch type to the system, place the file with a hatch pattern in the folder …\Program\HatchPatterns.<br />

Upon restarting T-<strong>FLEX</strong> <strong>CAD</strong>, the new type will appear in the list of hatches “by pattern”. To remove a<br />

custom hatch type, simply delete its pattern file from …\Program\HatchPatterns and restart T-<strong>FLEX</strong><br />

<strong>CAD</strong>.<br />

Creating Hatch Template<br />

A pattern file is a T-<strong>FLEX</strong> <strong>CAD</strong> drawing complying with certain rules. It must contain the image of the<br />

hatch pattern composed of nodes, graphic lines, text and hatches, as well as construction elements. The start<br />

point of the hatch is defined by a special node named “Center”. This node is mandatory in the hatch pattern.<br />

To make a given pattern repeat multiple times when filling the hatch contour, additional named nodes must<br />

be defined in the pattern that would define the direction and step of the pattern repetition. The node defining<br />

the first hatch direction must be named «StepX»; the node defining the second direction – «StepY». The<br />

direction-defining nodes are optional. In the case either of them is not defined, the pattern will be drawn just<br />

once in the respective direction.<br />

Working with Custom Hatches<br />

When using a custom hatch type in a document, the hatch pattern is saved with that document. Relation with<br />

the source file is lost at this point. Therefore, when porting a document file to a computer without the given<br />

hatch type, the image does not get lost.<br />

When porting a document containing custom hatch types to a computer with existing hatch type pattern<br />

under the same name, the hatch image stays unchanged in the form of the image saved in the document. To<br />

update a hatch image, you would need to redefine its type over again. To make an update, all you need is to<br />

bring up the parameters dialog box for one of the hatches and confirm the existing value. New hatches of the<br />

same type that will be created in this document will take on the current pattern.<br />

Examples of Creating Simple Hatches<br />

To create a custom hatch pattern, let’s open a new document (the command “FN: Create New Model”).<br />

705

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

Saved successfully!

Ooh no, something went wrong!