Jump to content
Clinehud

Custom Hatch with Random Line Spacing

Recommended Posts

Clinehud

Trying to create a custom hatch pattern that is just simple random spaced lines. What do we have to do to the y-offset to create the look of multiple randomly spaced lines?

Preferably, lines spaced 6",9",12",4"

Share this post


Link to post
Share on other sites
ReMark

What kind of hatch pattern are you trying to create? Maybe someone has already done the hard work.

Share this post


Link to post
Share on other sites
Clinehud

Just a simple continuous line .pat for AutoCAD with random spacing.

Share this post


Link to post
Share on other sites
ReMark

OK...just to confirm, we are talking about a hatch pattern right?

 

Your description sounds like a pattern that I've seen used in the hydrogeology field for either a type of rock or soil. Have you tried an Internet search for free hatch patterns?

Share this post


Link to post
Share on other sites
Clinehud

Yes, a hatch pattern..

 

I was looking to just modify a .pat like Line into something randomly spaced that could be interpreted as random wood slats

Share this post


Link to post
Share on other sites
ReMark

I would do a search for wood or wood flooring hatch patterns first.

 

Here is an example...http://www.cadhatch.com/#/autocad-wood-hatch-patterns/4555347745

 

One other example of free hatch patterns...http://www.cadcorner.ca/hatch.php

 

The "master" of custom hatch patterns was a guy named Watson Kilbourne of Compugraphx who used to submit them to Cadalyst magazine. The guy was absolutely amazing. You can try a search using his name and the words "hatch patterns" and see what comes up.

Edited by ReMark

Share this post


Link to post
Share on other sites
BIGAL

I did a line routine for doing predefined lines as a repeating pattern within a pline you could make it use a random number so lines are at different spacing it would be lines not a hatch search here BIGAL + Chevron

Share this post


Link to post
Share on other sites
hugha

Here's a 200 unit high pattern with horizontal lines randomly split between 2 and 12 units apart:

 

*RANDOMHORIZONTAL2-12,200 units with lines spaced between 2 and 12 apart

;-------------------------------------------------------------------------------

; Pattern written by HatchKit v2.7 Hatch Pattern Editor

; HatchKit v2.7 Hatch Pattern Editor© Cadro Pty Ltd 1990-2013.

; www.hatchkit.com.au

;-------------------------------------------------------------------------------

;-Comment =CadTutor

;-Template=NEW,

;-Source =C:\Users\hugh\Desktop\RANDOMHORIZONTAL2-12.PAT

;-Date =12/07/2013

;-Time =9:43:30 PM

;-HatchKitVersion=2.7.1.1995

;-------------------------------------------------------------------------------

0,0,195,0,200

0,0,189,0,200

0,0,180,0,200

0,0,172,0,200

0,0,163,0,200

0,0,152,0,200

0,0,140,0,200

0,0,132,0,200

0,0,124,0,200

0,0,117,0,200

0,0,111,0,200

0,0,108,0,200

0,0,101,0,200

0,0,96,0,200

0,0,90,0,200

0,0,84,0,200

0,0,78,0,200

0,0,73,0,200

0,0,71,0,200

0,0,63,0,200

0,0,54,0,200

0,0,43,0,200

0,0,39,0,200

0,0,36,0,200

0,0,28,0,200

0,0,20,0,200

0,0,11,0,200

0,0,8,0,200

0,0,0,0,200

 

If you need a taller portion to avoid repetition you can extend beyond 200 to any repletion height by changing the last 200 on each line to a larger value and adding further lines.

To obtain vertical lines, rotate 90 degrees.

HTH

Share this post


Link to post
Share on other sites
ReMark

That's pretty generous of you Huga but did you notice the OP is using imperial units specifically inches? Just thought I'd point that out. No offense meant.

 

Could you tell him how to edit the pattern definition file to reflect that?

Share this post


Link to post
Share on other sites
hugha
That's pretty generous of you Huga but did you notice the OP is using imperial units specifically inches? Just thought I'd point that out. No offense meant.

 

Could you tell him how to edit the pattern definition file to reflect that?

 

No editing is required at all.

 

The pattern is in fact expressed in inches and will produce lines "randomly" spaced between 2" and 12" apart when used in a drawing with units set to inches.

OTOH when used in an ISO drawing where units are set to mm then the pattern will be taken as being defined in mm.

 

AutoCAD's like that, you can elect to use a wide range of units to suit your purpose and the hatch patterns scales will follow your selection.

Revit is a bit different in expecting hatch pattern definitions to be supplied as INCHES or MM and converting internally to the full-scale size on loading.

 

No offense taken, remark, we're all here to help.

 

Hugh Adamson

Cadro Pty Ltd

http://www.hatchkit.com.au

Share this post


Link to post
Share on other sites
ReMark

I did not recognize that fact. My apologies. Thanks for enlightening me.

Share this post


Link to post
Share on other sites
hugha

No worries :)

Share this post


Link to post
Share on other sites
Clinehud

Great, this is what I was looking for. However, for some reason I am getting an error in the pattern when attempting to use it. Thoughts?

 

Thanks for your help!

Share this post


Link to post
Share on other sites
hugha

Add a blank line to the end of the file? Copy everything between the == do not include ==== lines below into the .PAT file.

- or try the attachment (remove the .txt extension to save as a .PAT file).

 

 

== do not include ====

*RANDOMHORIZONTAL2-12,200 units with lines spaced between 2 and 12 apart

;-------------------------------------------------------------------------------

; Pattern written by HatchKit v2.7 Hatch Pattern Editor

; HatchKit v2.7 Hatch Pattern Editor© Cadro Pty Ltd 1990-2013.

; http://www.hatchkit.com.au

;-------------------------------------------------------------------------------

;-Comment =CadTutor

;-Template=NEW,

;-Source =C:\Users\hugh\Desktop\RANDOMHORIZONTAL2-12.PAT

;-Date =12/07/2013

;-Time =9:43:30 PM

;-HatchKitVersion=2.7.1.1995

;-------------------------------------------------------------------------------

0,0,195,0,200

0,0,189,0,200

0,0,180,0,200

0,0,172,0,200

0,0,163,0,200

0,0,152,0,200

0,0,140,0,200

0,0,132,0,200

0,0,124,0,200

0,0,117,0,200

0,0,111,0,200

0,0,108,0,200

0,0,101,0,200

0,0,96,0,200

0,0,90,0,200

0,0,84,0,200

0,0,78,0,200

0,0,73,0,200

0,0,71,0,200

0,0,63,0,200

0,0,54,0,200

0,0,43,0,200

0,0,39,0,200

0,0,36,0,200

0,0,28,0,200

0,0,20,0,200

0,0,11,0,200

0,0,8,0,200

0,0,0,0,200

 

=== do not include ===

RANDOMHORIZONTAL2-12.PAT.txt

Share this post


Link to post
Share on other sites
Clinehud

It was a blank line causing the issue, this works perfectly now. Thank you so much for the pattern and clarifying modifications to it Hugha!

Share this post


Link to post
Share on other sites
edar

Hi all,

 

Follow up question- I am trying to do a similar thing as the original poster, but in Revit. I'm learning about creating custom hatches/ .pat files, but it isn't quite working for me. I am able to load a custom hatch and all, but that doesn't quite fit the bill. We are trying to use a hatch to show a series of corrugated metal panels that vary (seemingly randomly) across the building; i.e. 12", 2" reveal, 6", 6" reveal, 8", 6" reveal, etc. Horizontal lines every 10' only.

 

I tried loading the above (converted to vertical lines), but it seems like revit is only using the first two lines??

 

This would really help me out, as what we are currently doing is using a bunch of drafting lines in the elevations to mimic this corrugation, and that has to be redone manually! It's super inefficient!

Thanks!

Share this post


Link to post
Share on other sites
hugha

Hi Edar,

 

you can build any "Simple" pattern of unbroken lines with the free HatchKit Add-In for Revit available from the [Revit App Store].

 

Here's its online help. Select "new" then "simple" then add llnes with Angle set to zero at nominated points all spaced at a distance equal to the sum of all individual panel and reveal widths.

 

E.g: for the sizes you mentioned that overall spacing would be 12"+ 2" + 6" + 6" + 8" + 6" = 40".

 

hth

 

Hugh

Edited by hugha

Share this post


Link to post
Share on other sites
edar

Thanks hugha! I struggled through and was able to type out a new hatch in the .pat file. I do have a couple more questions about it, though:

 

Where is (0,0) in the revit file? Is 0 where the material starts? At level 1? Or at the actual revit origin (so if the Level 1 is at +309.80 feet is that the actual 0 Y point)?

 

I've attached a clip. I'm trying to get the breaks (every 10') to align with the actual break height (drawn in detail lines). So far Y=0 and Y=19 and Y=137 (11'-5") don't work.

 

clip.jpg

 

 

Also, sometimes a hatch that does work won't appear in the import list. I've tried saving-as with the pat files, but I can't figure out the pattern there.

 

Thanks!!

Share this post


Link to post
Share on other sites
edar

 

Where is (0,0) in the revit file? Is 0 where the material starts? At level 1? Or at the actual revit origin (so if the Level 1 is at +309.80 feet is that the actual 0 Y point)?

 

I think I've answered my own question. I set Y to the absolute height in revit, and it just took a little nudging from there. Please let me know if that's not how you understand it to work.

 

THanks!

Share this post


Link to post
Share on other sites
hugha

That's how I understand it works. An expert may be able to shed more light.

 

>Also, sometimes a hatch that does work won't appear in the import list. I've tried saving-as with the pat files, but I can't figure out the pattern there.

 

The import won't let you choose a problematical hatch. Something's wrong. Post an example for dissection :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×