Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

waseemtarik
5461 Vistas, 17 Respuestas

looking for a hatch

Hello everyone, I have been searching and looking for a hatch to use for my details regarding the insulation.

however, I couldn't find in any website. if someone could please help me finding this hatch or creating it, I would appreciate that. attached is what I'm looking for 

regards, 

pendean
en respuesta a: waseemtarik

you can extract hatch patterns from DWG files with a LISP like this one https://forums.autodesk.com/t5/autocad-lt-forum/save-hatch-pattern-from-drawing-as-pat-file/m-p/6726...

 

Help yourself.

waseemtarik
en respuesta a: pendean

@pendean hi, that attached I have is not hatch. it's just line that I draw. I would like to have it in hatch. is there a way of doing it? could you please help me with that. I have AutoCAD 2020 full version 

Kent1Cooper
en respuesta a: waseemtarik

If you would want the same "look" at varying thicknesses:

Kent1Cooper_0-1608737659380.png

I don't think that's possible with a Hatch pattern.  It might be, with either a Hatch pattern, or maybe more easily with a custom Linetype, if the spacings can vary proportionally along with the thickness:

Kent1Cooper_1-1608737837393.png

 

Kent Cooper, AIA
R_Tweed
en respuesta a: waseemtarik

I use the batting linetype for basic sections, changing the linetype scale through the properties palette will adjust the width of the pattern. Based on your dwg you could make a block like the one attached that will fill width and length.  You might want to check the dynamic block forum to see if someone has posted something similar. If you are a subscriber and have access to ACA there is a detail component for batt insulation that allows tapers as well.

 

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
kimjones4110
en respuesta a: waseemtarik

I would just do it as a dynamic block. See attachment.

Etiquetas (1)
waseemtarik
en respuesta a: Kent1Cooper

@Kent1Cooper yes almost same look if that is possible, to be hatch not block. I don't mind the spacing of it. 

if the picture you uploaded is hatch pattern provide me the link as well. 

I know there's a command to make a linetype but I couldn't make the same line I have. 

waseemtarik
en respuesta a: kimjones4110

@R_Tweed @kimjones4110 before was dynamic block, and I want it to be either hatch or even linetype would be ok. but, thanks for the help 

Kent1Cooper
en respuesta a: waseemtarik


@waseemtarik wrote:

.... yes almost same look if that is possible, to be hatch not block. ....  


My image was of just drawn Lines like yours, but it's easily defined.  Here's a Hatch pattern definition:

 

*MWInsul, Mineral Wool Insulation
0, 0,0, 0,1
90, 0,0, 0,.4, .8,-.2
90, .2,.2, 0,.4, .8,-.2

 

Use it at a scale factor the same as the wall thickness, at a rotation angle that is the direction the wall edges run, and with its origin at a corner of the Hatched area.  It looks like this, at a rotation of 0° with the origin at lower left:

Kent1Cooper_1-1608748907439.png

Be aware of the need to match the scale factor to the wall thickness, and use it only in parallel-edged areas, otherwise it looks like these:

Kent1Cooper_2-1608749113594.png

You can change the pattern name to whatever you want.  Save it to a file with a .pat filetype ending, somewhere that AutoCAD knows where to look for it, with the file name exactly matching the pattern name [minus the * at the beginning], and be sure the file ends with an empty line, not at end of the code content.  [If you keep the pattern name as I have it, the file must be called MWInsul.pat, though that is not case-sensitive.]

Kent Cooper, AIA
waseemtarik
en respuesta a: Kent1Cooper

@Kent1Cooper I uploaded the file without changing anything, however when i select the hatch it doesn't do anything, 

I don't know if I have something wrong or doing it wrong

please advise. 

Kent1Cooper
en respuesta a: waseemtarik


@waseemtarik wrote:

 

...I know there's a command to make a linetype but I couldn't make the same line I have. 

Here's a linetype definition:

*MWInsul
A,0,["|",STANDARD,S=.8,Y=-.5],-.2,["|",STANDARD,S=.8,Y=-.3],-.2

that looks like this [just the white parts]:

Kent1Cooper_0-1608750389452.png

Draw down the middle of the wall thickness, and give it an effective linetype scale the same as the wall thickness.  ["Effective" linetype scale is the product of the drawing's general linetype scale and the object's assigned scale.]

 

It requires that the STANDARD Text Style has the TXT.shx font assigned [as it is in your sample drawing, but that's not the default in newer versions], with 0 height.  If a drawing has a different font assigned to STANDARD Style, and you can't change that, make a new Style for the purpose, and replace STANDARD in the code with the new Style's name [in both places].  Then you need to be sure that Style exists in any drawing in which you want to use the linetype.  [It will work with a different font, but the "lines" in it will probably look too thick with most .ttf fonts, and the overall width won't always be the same as the linetype scale.  TXT's "pipe" character is conveniently a plain line, exactly the capital-letter height, but many fonts have pipe characters that extend above and/or below that height.  Alternatively, it would be possible to define this using the TRACK1 shape that AutoCAD's TRACKS linetype uses, instead of a text element.]

 

One advantage of a linetype over a Hatch pattern or a dynamic Block [however rare it may be that you would need this]:  curves!

Kent1Cooper_1-1608750756315.png

Kent Cooper, AIA
Kent1Cooper
en respuesta a: waseemtarik


@waseemtarik wrote:

.... I uploaded the file without changing anything, however when i select the hatch it doesn't do anything, .... 


But it shows it, and lets you select it?  Are there any messages?  What does "doesn't do anything" mean?  Does it let you select objects or pick in an area, but you don't see any result?  You could have the scale off -- it should be the same as the wall thickness, in drawing units [not in your sample drawing's metric-imperial mix with a so-called 3" thickness that's really seventy-some drawing units].  And follow the instruction about the blank line at the end of the file [one of the most common errors people make is to not do that].  If those don't fix it, post the file you made.

Kent Cooper, AIA
waseemtarik
en respuesta a: Kent1Cooper

@Kent1Cooper in somehow it doesn't create the hatch, please see attached and let me know thank you 

I can't attached the file for hatch i don't know why

Patchy
en respuesta a: waseemtarik

Have you made a .pat with the name MWInsul.pat and put it in a folder ties to a search path?

Pat.JPG

Kent1Cooper
en respuesta a: waseemtarik


@waseemtarik wrote:

@Kent1Cooper in somehow it doesn't create the hatch, please see attached and let me know thank you 

I can't attached the file for hatch i don't know why


[If it won't accept attaching of a .pat file, you can ZIP it and attach the .zip file.]

 

It works for me.  Did you use a scale factor to match the wall thickness in drawing units?  Your "wall" is about 74.5 units, but I used 76.2 for the true millimeter measure equivalent to 3".  But even at a scale of 3, it worked for me, though of course it's very dense in an area that size.  Maybe you need to increase your HPMAXLINES System Variable setting [read about it in Help].

Kent Cooper, AIA
waseemtarik
en respuesta a: Kent1Cooper

@Kent1Cooper I believe something wrong I'm doing. please see attached and advice. 

Kent1Cooper
en respuesta a: waseemtarik

It's the classic [you did not heed my two previous instructions about this] -- the file must end with a blank line, not with the end of the code content.  Open it, go to the end, and hit Enter to move to an empty last line, save, exit, etc.

Kent Cooper, AIA
waseemtarik
en respuesta a: Kent1Cooper

@Kent1Cooper  yes, it works perfectly, first time using the custom hatch, that's why I never had an idea about it. 

however, hatch and linetype works as perfect.

thank you sir