Custom Hatch with Question Marks

Custom Hatch with Question Marks

chrismb11
Explorer Explorer
875 Views
9 Replies
Message 1 of 10

Custom Hatch with Question Marks

chrismb11
Explorer
Explorer

I need a custom hatch that will fill an area with question marks. I tried manipulating an existing PAT file created for the number 2, but I can't seem to get it. Does anyone have a PAT that will reflect question marks or see the issue with below. Thanks

*HLETT2E0 MOD3,
-90,54,54,0,100,1,-99
123.6900711,54,54,83.2050323,-55.4700203,3.6055512,-356.949585
123.6900711,154,54,83.2050323,-55.4700203,3.6055512,-356.949585
180,52,57,0,100,3,-97
225,49,57,-70.7106705,-70.7106857,2.8284271,-138.592926
90,50,45.595,0,100,3,-97
90,50,105,0,100,1,-97
243.434967,54,53,-89.4427338,-44.7213364,2.236068,-221.3707275
218.6598053,105.5,93,-62.4695015,-78.08688354,4,-633.9093018
218.6598053,205.5,93,-62.4695015,-78.08688354,4,-633.9093018
218.6598053,305.5,93,-62.4695015,-78.08688354,4,-633.9093018
218.6598053,405.5,93,-62.4695015,-78.08688354,4,-633.9093018
218.6598053,505.5,93,-62.4695015,-78.08688354,4,-633.9093018

0 Likes
Accepted solutions (4)
876 Views
9 Replies
Replies (9)
Message 2 of 10

renr
Alumni
Alumni
Accepted solution

@chrismb11  it looks pattern works for me .

please see question.PNG

 

there are something you can check

make sure you added the pattern definition to the right .pat file and it can be searched by autocad application

eg: C:\Users\USERNAME\AppData\Roaming\Autodesk\AutoCAD 2019\R23.0\enu\Support\acadiso.pat

 

some time ,the pattern has already here ,but it can not be visible due to the wrong scale.  so you also can try to adjust the scale of your hatch.

 

hope it helps



Richard Ren
Support Specialist
Product Support
Autodesk, Inc.
0 Likes
Message 3 of 10

Kent1Cooper
Consultant
Consultant
Accepted solution

I suspect that could be written with fewer lines [the last 5 could likely be combined into one lineset], but in any case, just to fix it....

 

Try this:

 

-90, 54,54, 0,100, 1,-99
123.6900711, 54,54, 83.2050323,-55.4700203, 3.6055512,-356.949585
123.6900711, 154,54, 83.2050323,-55.4700203, 3.6055512,-356.949585
180, 52,57, 0,100, 3,-97
225, 49,57, -70.7106705,-70.7106857, 2.8284271,-138.592926
90, 50,45.595, 0,100, 3,-97
90, 50,42, 0,100, 1,-99 ;; changed origin from 50,105, changed pen-up from -97
243.434967, 54,53, -89.4427338,-44.7213364, 2.236068,-221.3707275
218.6598053, 53,51, -62.4695015,-78.08688354, 4,-636.3122731

;; changed origin from 105.5,93, changed pen-up from -633.9093018; correspondingly on following
218.6598053, 153,51, -62.4695015,-78.08688354, 4,-636.3122731
218.6598053, 253,51, -62.4695015,-78.08688354, 4,-636.3122731
218.6598053, 353,51, -62.4695015,-78.08688354, 4,-636.3122731
218.6598053, 453,51, -62.4695015,-78.08688354, 4,-636.3122731

 

The first blue number [42] is arbitrary -- change it if you want the "dot" closer to or farther from the squiggle part.

 

Remove the ;; commentary if you like.

 

[And I would change the name of the pattern, since it's not about 2's any more.]

Kent Cooper, AIA
Message 4 of 10

chrismb11
Explorer
Explorer

Greatly appreciate the help.  Is there a easy adjustment to double the characters to make more dense?

Again, thanks for the help and fast response.

 

chrismb11_0-1588083002294.png

 

0 Likes
Message 5 of 10

Kent1Cooper
Consultant
Consultant

@chrismb11 wrote:

....  Is there a easy adjustment to double the characters to make more dense? ....


Certainly, but not right now....  Maybe later today I'll look at that.

Kent Cooper, AIA
Message 6 of 10

hugha
Collaborator
Collaborator
Accepted solution

Try This:

;----------------------------------------------------------------------------
; Written by HatchKit Team Edition
; HatchKit Team Edition (c)1990-2019 Cadro Pty Ltd
; www.hatchkit.com.au/
;----------------------------------------------------------------------------
;-Date : 2020-04-29
;-Time : 12:23:18
;-HatchKit Team Edition Version : 3.1.11.2776
;-HatchKit Team Edition Output Filetype : AutoCAD format
;----------------------------------------------------------------------------
*query
63.42425156,2.6937,6.6267,1633.54587,-1.16154456,2.2361,-1775.881
44.97469617,-3.3063,10.627,45.4482688,0.468542936,2.8284,-4405.225
0,-1.3063,12.627,31.8198051,32.4540394,3,-60.6396103
90,-0.30631,1.2217,32.4540394,31.81980515,3,-61.9080788
-90,3.6937,9.6267,32.4540394,31.81980515,1,-63.9080788
-56.3099323,101.69,12.627,83.2050322,-55.4700204,3.6056,-356.949535
-56.3099323,1.6937,12.627,83.2050322,-55.4700204,3.6056,-356.949535
-56.308171,1.6937,12.627,232.622101882,-2.118010847,3.6056,-971.536913
-141.2922,2.6937,6.6267,776.2047277,1.808953525,3.845,-1137.8993
0,-0.74955,0,31.819805,32.4540394,0.74955,-62.8900603
-90,0,0,32.4540394,31.81980515,0.63423,-64.2738488
180,0,-0.63423,31.819805,32.4540394,0.74955,-62.8900603
90,-0.74955,-0.63423,32.4540394,31.81980515,0.63423,-64.2738488

 

 

 

 

 

 

 

 

hth,

 

Hugh Adamson

 

0 Likes
Message 7 of 10

chrismb11
Explorer
Explorer

Perfect.  Really appreciate it.  Exactly what I needed.

0 Likes
Message 8 of 10

Kent1Cooper
Consultant
Consultant

@chrismb11 wrote:

....  Is there a easy adjustment to double the characters to make more dense? ....


With a slight change in the shape of the squiggle part, it becomes much simpler to define:

90, 0,-7, 50,50, 1,-2,2,-95
45, 0,-2, 0,70.71067812, 5.65685425,-65.05382387
90, 4,2, 50,50, 3,-97
135, 4,5, 0,70.71067812, 2.82842712,-67.88225099
180, 2,7, 50,50, 3,-97
225, -1,7, 0,70.71067812, 2.82842712,-67.88225099

 

And note the first line, which includes both the "dot" and the bottom vertical piece of the "squiggle" in one  lineset definition.  The Hatchkit version didn't realize that possibility, and I have seen many pattern definitions produced by it that have similar overkill.  Even without changing the shape of the squiggle, I'm sure a definition could be more concise.

Kent Cooper, AIA
Message 9 of 10

chrismb11
Explorer
Explorer

Excellent option.  Thanks for the help.

0 Likes
Message 10 of 10

Kent1Cooper
Consultant
Consultant
Accepted solution

@Kent1Cooper wrote:
....  Even without changing the shape of the squiggle, I'm sure a definition could be more concise.

The following is all you need.  I changed offsets and pen-down/pen-up numbers to double the density, and fine-tuned some of the numbers for greater accuracy farther from the origin, and I eliminated redundant lines that the original also had, which are not needed when appropriate offsets and pen numbers will cover all of those at the same angle in the same position within the shape, nor with the collinear pieces.  I didn't  move lineset origin points closer to the pattern origin, but I did  eliminate the little misfit "shoulder" overhang in the original.

 

-90, 54,54, 50,50, 1,-99
123.69006753, 54,54, 69.33752453,13.86750491, 3.6055512,-356.94957627
180, 52,57, 50,50, 3,-97
225, 49,57, 0,70.71067812, 2.82843158,-67.88224654
90, 50,42, 50,50, 1,-2.595,3,-93.405
243.434967, 54,53, 67.08203223,-22.36070106, 2.23606798,-221.37072752
218.65979606, 53,51, 70.27819119,7.80870305, 3.84499831,-636.46729952

 

[EDITED to eliminate another redundant line -- use the current version rather than what was originally in this Message.]

Kent Cooper, AIA