![]() ![]() The angle at which the line is to be drawn. The first field, Angle, which in our case is "0", determines The syntax of each drawing line is as follows : Angle, X,Y Origin, Offset-x,Offset-y, Pen Command Pattern This hatch pattern and added it to your drawing, it would look like this : ![]() In this example we are only using a single pass so we will only This line describes a single drawing pass over the hatch This is the name of our hatch pattern followed by a description of the pattern, separated by a comma (,). Open Notepad and add this line : *Dashdot, Dashes and dots Going to create our own hatch definition or pattern file. Own file, the file name must match the name of the hatch pattern. You wish, or you can store it in it's own file. You can append a hatch pattern to an existing file if The same principalĪpplies to even the most complicated hatch pattern so, as my Mum oftenĪ hatch pattern definition is stored in a simple ASCII text file withĪn extension of PAT. Let's take a look at a simple hatch pattern first. Linetypes are used extensively throughout hatch patterns and a good understanding is a pre-requisite. It's the complicated ones that take time, effort, a good understanding of how to create hatches and linetypes, some knowledge of geometry and quite a bit of imagination.īefore proceeding with this tutorial, I would strongly recommend that you read my tutorial on creating custom linetypes. Honestly, though, simple hatch patterns are quite easy to create. StrFileName = Rhino.OpenFileName("Import", "Pattern Files (*.pat)|*.pat||")ĪrrPatterns = Rhino.You want to what?! Create a hatch pattern? Crikey, you're brave. The names of the newly added hatch patterns if successful. If omitted, existing hatch patterns will not be redefined (False). If hatch pattern names already in the document match hatch pattern names in the pattern definition file, then the existing hatch patterns will be redefined. ![]() The name of the hatch pattern file to import. Rhino.AddHatchPatterns (strFileName ) Parameters For more information on hatch pattern files, see the Rhino help file for the Hatch command. AddHatchPatterns AddHatchPatterns Adds hatch pattens to the document by importing hatch pattern definitions from a pattern file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |