Announcement

Collapse
No announcement yet.

Help with creating simple .pat file in notepad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with creating simple .pat file in notepad

    Does anyone know how to make a simple .pat file with alternating 4" and 8" horizontal lines using notepad?! Any help would be greatly appreciated!!!! THANK YOU SO MUCH IN ADVANCE!!!!!
    Attached Files

    #2
    If nobody beats me to it....can get it to ya in the morning....

    Basically its one line that starts off at 0,0 then repeats at an offset of 0,12...the next line starts at 0,4 with an repeating offset of 0,12...


    Try this:

    *4in8inOffset, 4" Offset, 12" Spacing
    ;%TYPE=MODEL
    0, 0, 0, 0, 12
    0, 0, 4, 0, 12
    Last edited by MPwuzhere; September 7, 2011, 02:00 AM. Reason: Found a revit.pat file for reference....
    Michael "MP" Patrick (Deceased - R.I.P)

    Comment


      #3
      Hi there,
      I would check out this thread: http://www.revitforum.org/showthread...2-(Mertens-3D) . No need to mess around with notepad..

      Comment


        #4
        Originally posted by KimArndt View Post
        Hi there,
        I would check out this thread: http://www.revitforum.org/showthread...2-(Mertens-3D) . No need to mess around with notepad..
        Ya but notepad makes it a challange. hahaha I can say this though, after having to modify a conc hatch pat i have new respect for that Hatch22 does. It hurts my brain.
        -Alex Cunningham

        Comment


          #5
          I was happy to find out hatches are created the same way as in AutoCAD.
          I've made a nice explanation about it, I'll translate it into english and extrapolate it to the Revit-language in the morning.

          Comment


            #6
            Originally posted by Alex Cunningham View Post
            Ya but notepad makes it a challange. hahaha I can say this though, after having to modify a conc hatch pat i have new respect for that Hatch22 does. It hurts my brain.
            True, I have written quite a few myself, it's definitely a good workout for your brain..

            Comment


              #7
              If you are a visual person like me, someone on some forum ages ago had posted this graphic if you want to make hatch patterns in notepad that I have found pretty useful... I like giving my brain a workout too
              Attached Files
              Last edited by Munkholm; September 7, 2011, 07:17 PM. Reason: Fixed attachment

              Comment


                #8
                Me too, but I prefer to do it with stuff there isn't a mighty and simple solution to...
                Martijn de Riet
                Professional Revit Consultant | Revit API Developer
                MdR Advies
                Planta1 Revit Online Consulting

                Comment


                  #9
                  Ooops, thanks for fixing the attachment, Munkholm!

                  Comment


                    #10
                    The image NLG posted is quit clear I think.
                    But here's my explanation, I hope you'll find this useful as well.

                    ;%UNITS=MM
                    *halfsteens koppenmaat 110, lagenmaat 60
                    ;%TYPE=MODEL
                    0, 0,0, 0 ,120, 210,-10
                    0, 0,50, 0 ,120, 210,-10
                    0, 110,60, 0 ,120, 210,-10
                    0, 110,110, 0 ,120, 210,-10
                    90, 0,0, 0 ,220, 50,-70
                    90, 210,0, 0 ,220, 50,-70
                    90, 110,60, 0 ,220, 50,-70
                    90, 320,60, 0 ,220, 50,-70

                    This masonry consists of 2 bricks, starting at a different x and y position, then repeating itself
                    every brick is made up of 4 lines
                    therefor we have 8 lines of text

                    0, 0,0, 0 ,120, 210,-10
                    A, B,C, D ,E, F , -G

                    A is the angle, 0 is a horizontal line
                    B is the x-starting position
                    C is the Y-starting position
                    the 1st line of the 1st brick starts at 0,0 and is horizontal
                    next we copy yhat line. because it's a horizontal line, we need to copy it vertically
                    it's like an offset
                    D is offsetting the line in the direction of the line. (so it's 0)
                    E is copying the line perpendicular to that line.
                    in this case: 120mm, because that's where the next brick will start. (the other brick will start 60mm up, but it has a different X-start)
                    now we draw the horizontal line:
                    the brick is 210mm long and has a joint of 10mm
                    F is the drawn line
                    G is the 10mm space (that's why you have to add a '-'
                    Now you've defined the first line that starts at 0,0, is horizontal, and is a dashed line of 210mm - 10mm space - 210mm etc.

                    0, 0,50, 0 ,120, 210,-10
                    A, B,C, D ,E, F,-G

                    the second line is exactly the same as the first line except it's y-starting position

                    90, 0,0, 0 ,220, 50,-70
                    A, B,C, D ,E, F,-G

                    This is the first vertical line
                    start at 0,0 and copy.offset this every 220mm horizontal
                    This vertical line will be drawn with a 50mm line, and a 70mm space

                    Always end your hatch with a return (enter)

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X