Jump to content

Custom Hatch with Random Line Spacing


Clinehud

Recommended Posts

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"

Link to comment
Share on other sites

  • Replies 20
  • Created
  • Last Reply

Top Posters In This Topic

  • hugha

    6

  • ReMark

    5

  • Clinehud

    5

  • edar

    4

Top Posters In This Topic

Posted Images

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

  • 3 years later...

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!

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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!!

Link to comment
Share on other sites

 

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!

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...