Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom Hatch Pattern

3 REPLIES 3
Reply
Message 1 of 4
Jim_Earle
524 Views, 3 Replies

Custom Hatch Pattern

Ok I want to change a default hatch pattern and am having trouble. this is the orginal code for it:

 

*BRICK35, ArchT Brick Running
0, 0,0, 0,4
90, 0,0, 504,32, 4,-84
90, 8,0, 504,32, 4,-84
90, 16,0, 504,32, 4,-84
90, 24,0, 504,32, 4,-84
90, 4,4, 504,32, 4,-84
90, 12,4, 504,32, 4,-84
90, 20,4, 504,32, 4,-84
90, 8,8, 504,32, 4,-84
90, 12,-4, 504,32, 4,-84
90, 20,-4, 504,32, 4,-84
90, 240,80, 504,32, 4,-108
90, 248,80, 504,32, 4,-108
90, 256,80, 504,32, 4,-108
90, 264,80, 504,32, 4,-108
90, 244,84, 504,32, 4,-108
90, 252,84, 504,32, 4,-108
90, 260,84, 504,32, 4,-108
90, 248,88, 504,32, 4,-108
90, 252,76, 504,32, 4,-108
90, 260,76, 504,32, 4,-108
90, 380,124, 504,32, 4,-76
90, 388,124, 504,32, 4,-76
90, 396,124, 504,32, 4,-76
90, 404,124, 504,32, 4,-76
90, 384,128, 504,32, 4,-76
90, 392,128, 504,32, 4,-76
90, 400,128, 504,32, 4,-76
90, 388,132, 504,32, 4,-76
90, 392,120, 504,32, 4,-76
90, 400,120, 504,32, 4,-76

 

when you hatch and set the scale to one the course height is 4". I want to adjust that to be like a noraml course (2.666666667)

One would think to simply swap out the 4 with the 2.666666667 but when I try that I get lines that extend past. Can someone explain what I am missing?

3 REPLIES 3
Message 2 of 4
Kent1Cooper
in reply to: Jim_Earle


@Jim_Earle wrote:

Ok I want to change a default hatch pattern and am having trouble. this is the orginal code for it:

 

*BRICK35, ArchT Brick Running
0, 0,0, 0,4
90, 0,0, 504,32, 4,-84
....

90, 20,-4, 504,32, 4,-84
90, 240,80, 504,32, 4,-108
....

90, 260,76, 504,32, 4,-108
90, 380,124, 504,32, 4,-76
....

90, 400,120, 504,32, 4,-76

 

when you hatch and set the scale to one the course height is 4". I want to adjust that to be like a noraml course (2.666666667)

One would think to simply swap out the 4 with the 2.666666667 but when I try that I get lines that extend past. Can someone explain what I am missing?


Changing the 4's to 2.666... only changes the spacing of the horizontal lines and the pen-down parts of the vertical elements.  You also need to change the pen-up parts [the negative numbers], to turn the line off for the same number of shorter courses, and the Y values of the starting points [other than 0], to start them at different elevations.  You would want to change them to whatever multiple of 4 they are, multiplied by 2.6666... instead.  And you would probably want to change the X-offset values similarly, though you could leave those at 504, and space your clusters out over the same distance but more courses vertically, since that spacing will meet coursing lines at either course height.  Try this [untested]:

 

*BRICK35, ArchT Brick Running
0, 0,0, 0,2.66667
90, 0,0, 336,32, 2.66667,-56

....[also change 3rd figures other than 0 in all intervening lines]....

90, 20,-2.66667, 336,32, 2.66667,-56

90, 240,53.33333, 336,32, 2.66667,-72

....

90, 260,50.66667, 336,32, 2.66667,-72

90, 380,82.66667, 336,32, 2.66667,-50.66667

....

90, 400,80, 336,32, 2.66667,-50.66667

Kent Cooper, AIA
Message 3 of 4
Jim_Earle
in reply to: Kent1Cooper

Thanks for the reply. I am not very good at understanding hatch patterns. But I dont understand how exactly to switch the nembers. What method did you use to choose those?

Message 4 of 4
Kent1Cooper
in reply to: Jim_Earle


@Jim_Earle wrote:

.... I dont understand how exactly to switch the nembers. What method did you use to choose those?


I divided the numbers that are about 4" coursing by 4 to find out what multiple they are of it, and multiplied that result by 2.66667 instead.  So 84 became 56 [84 divided by 4 = 21, and 21 x 2.66667 = 56], etc.

 

As to which numbers need to be adjusted, read up about them in "Overview of Hatch Pattern Definitions" in the Customization Guide.  Specifically, this format for lines in pattern definitions:

 

angle, x-origin,y-origin, delta-x,delta-y,dash-1,dash-2, ...

 

You need to adjust the y-origin numbers [that aren't 0] for the correct number of shorter courses above/below the definition origin, the delta-x value for the offset between repeats in the direction of the shorter course height, and the dash [and gap when negative] sizes for multiples of 2.66667 instead of 4.

 

Unfortunately, there's an aspect to the way the system works that's a little confusing.  The x-origin,y-origin numbers are the starting location for a line-set relative to the origin, in relation to 0-degree direction and not in relation to the angle specified before them.  But the delta-x,delta-y numbers are repetition offsets in relation to the angle specified at the beginning of the line.  So for a line-set at 90 degrees [all but the first line in this pattern], delta-x is vertical, and is what you want to change for the different coursing height.

 

The x-origin numbers would remain, as multiples of the 8" brick length, and correspondingly the delta-y numbers, as offsets between repeats that are multiples of that same 8".

Kent Cooper, AIA

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost