PDA

View Full Version : EROR IN IMPORT HATCH



thinhphamkts
2010-06-09, 05:56 PM
THIS IS MY EROR (PIC). WHAT HAPPENED WITH REVIT ?

DaveP
2010-06-09, 06:03 PM
What does your Revit.pat file look like?
From the looks of that message, I'd guess your .pat file is empty.

thinhphamkts
2010-06-09, 06:09 PM
What does your Revit.pat file look like?
From the looks of that message, I'd guess your .pat file is empty.
MY REVIT IS REVIT 2011
I IMPORT IT FROM acad.pat in AUTOCAD 2007, AND HERE IS SOME FILES I TRIED. IF YOU HAVE WORKING FILE, PLEASE UP IT FOR ME. THANKS

DaveP
2010-06-09, 06:22 PM
You can't just import a .pat file directly from AutoCAD.
Although they are ALMOST exactly the same, there are slight differences.
The Revit file needs to have an additional line:
;%TYPE=DRAFTING
or
;%TYPE=MODEL
included in the description.
Again, I say - Take a look at your Revit.pat file.

And, no this did not change in 2011, it's always been that way.

thinhphamkts
2010-06-09, 06:32 PM
You can't just import a .pat file directly from AutoCAD.
Although they are ALMOST exactly the same, there are slight differences.
The Revit file needs to have an additional line:
;%TYPE=DRAFTING
or
;%TYPE=MODEL
included in the description.
Again, I say - Take a look at your Revit.pat file.

And, no this did not change in 2011, it's always been that way.
i don't know how to add that line to revit file
here is my revit.pat file

gwnelson
2010-06-09, 06:44 PM
pat is a text (txt) file. You need to open it (them) & add the "Model" and "Drafting" types as shown to one of each (save one as Model, one as Drafting). You can root around among your Rvt pat files to see the typical format.

thinhphamkts
2010-06-09, 07:50 PM
pat is a text (txt) file. You need to open it (them) & add the "Model" and "Drafting" types as shown to one of each (save one as Model, one as Drafting). You can root around among your Rvt pat files to see the typical format.

sorry, i don't understand the way you show, can you explain about it more clearly

DaveP
2010-06-09, 08:31 PM
Do you know how to use Notepad?

Open one of the .pat files you uploaded in NotePad
Then open your Revit.pat file in Notepad

Look at them side by side and compare the differences.
Here's your BW.PAT

*bw,Basket weave brick pattern
0, 0,0, 0,8
0, 0,4, 8,8, -8,8
90, 0,0, 0,8
90, 4,0, 8,8, 8,-8

and here's a Revit pattern

*Triangles, Triangular grid
;%TYPE=DRAFTING
0, 0, 0, 0, 0.15
60, 0, 0, 0, 0.15
120, 0, 0, 0, 0.15
You'll just have to figure it out from there.
If you had opened your Revit.pat file, you'd have seen a great big description explaining how to create a pattern.

Sorry, we can show you how, but we're not going to do it for you.

azmz3
2010-06-09, 08:36 PM
what you need to do, is open of the CAD .pat files, in notepad, add the descriptor, for whether it is a model or drafting pattern, save the file, then you can load into Revit, for a working hatch pattern.

thinhphamkts
2010-06-09, 08:46 PM
Do you know how to use Notepad?

Open one of the .pat files you uploaded in NotePad
Then open your Revit.pat file in Notepad

Look at them side by side and compare the differences.
Here's your BW.PAT

*bw,Basket weave brick pattern
0, 0,0, 0,8
0, 0,4, 8,8, -8,8
90, 0,0, 0,8
90, 4,0, 8,8, 8,-8

and here's a Revit pattern

*Triangles, Triangular grid
;%TYPE=DRAFTING
0, 0, 0, 0, 0.15
60, 0, 0, 0, 0.15
120, 0, 0, 0, 0.15
You'll just have to figure it out from there.
If you had opened your Revit.pat file, you'd have seen a great big description explaining how to create a pattern.

Sorry, we can show you how, but we're not going to do it for you.

i've add ";% TYPE=DRAFTING" in BW.pat.
before i add, revit show eror in line 2, after i added, revit show eror in line 3, so i don't know how to fix

DaveP
2010-06-09, 09:49 PM
*bw,Basket weave brick pattern
;%TYPE=DRAFTING
0, 0,0, 0,8
0, 0,4, 8,8, -8,8
90, 0,0, 0,8
90, 4,0, 8,8, 8,-8

Worked fine for me.

The only other thing I can think of is that it might be an issue with a metric pattern. Not sure if 8 means 8mm, 8cm, or 8M, but if it works in AutoCAD, it should work in Revit.
Oops, two things.
You are editing in Notepad, aren't you?
If you try to use Word, it will add extra characters & cause problems.

hugh.69031
2010-06-10, 01:55 AM
thinhphamkts,


i've add ";% TYPE=DRAFTING" in BW.pat.
before i add, revit show eror in line 2, after i added, revit show eror in line 3, so i don't know how to fix

Take out any spaces between ;% and TYPE=DRAFTING as they cause a loading error. Use either

;%TYPE=DRAFTING
;%TYPE=MODEL

Actually ;%TYPE=DRAFTING is unnecessary as it is the default.

If this doesn't help, please upload the file you are having trouble loading.

Hugh Adamson
www.hatchkit.com.au (http://www.hatchkit.com.au)

thinhphamkts
2010-06-10, 06:49 AM
*bw,Basket weave brick pattern
;%TYPE=DRAFTING
0, 0,0, 0,8
0, 0,4, 8,8, -8,8
90, 0,0, 0,8
90, 4,0, 8,8, 8,-8

Worked fine for me.

The only other thing I can think of is that it might be an issue with a metric pattern. Not sure if 8 means 8mm, 8cm, or 8M, but if it works in AutoCAD, it should work in Revit.
Oops, two things.
You are editing in Notepad, aren't you?
If you try to use Word, it will add extra characters & cause problems.

yes, i work with notepad. so, if it work fine for you, i think my revit is have problem.

thinhphamkts
2010-06-10, 06:51 AM
thinhphamkts,



Take out any spaces between ;% and TYPE=DRAFTING as they cause a loading error. Use either

;%TYPE=DRAFTING
;%TYPE=MODEL

Actually ;%TYPE=DRAFTING is unnecessary as it is the default.

If this doesn't help, please upload the file you are having trouble loading.

Hugh Adamson
www.hatchkit.com.au (http://www.hatchkit.com.au)
it's here, i edited it but it doesn't work.

DaveP
2010-06-10, 02:03 PM
I downloaded your file, and it imported no problem, so it looks like it may be your installation.
Hate to say a re-install "might" fix it, but that may be your only option at this point.

Are you using the English Version, or do you have the localised South-East Asia build? I don'tknow how to tell which is which, but my build number is 20100326_1700(x64)
That's from Help (the question mark in a circle)...About

hugh.69031
2010-06-10, 02:25 PM
The delta-x value seems to be missing from one line in that pattern. Edit your file to add it in then try loading again:

;%UNITS=INCH
;%VERSION=3.0
*rbbrickc,Running bond brick - complex
;%TYPE=DRAFTING
0, 0, 0, 4, 2.666666666, 7.625, -0.375
90, 0, 0, 2.666666666,4, 2.291666666,-3.041666666
0, 0,2.291666666, 4,2.666666666, 7.625,-.375
90, 7.625,0, 2.666666666,4, 2.291666666,-3.041666666

or for a model pattern of 8" bond bricks

;%UNITS=INCH
;%VERSION=3.0
*rbbrickc,Running bond brick - complex
;%TYPE=MODEL
0, 0, 0, 4, 2.666666666, 7.625, -0.375
90, 0, 0, 2.666666666,4, 2.291666666,-3.041666666
0, 0,2.291666666, 4,2.666666666, 7.625,-.375
90, 7.625,0, 2.666666666,4, 2.291666666,-3.041666666


hth
Hugh Adamson
www.hatchkit.com.au (http://www.hatchkit.com.au)

nancy.mcclure
2010-07-21, 05:08 AM
I ran into the mysterious "error in Line 2 syntax" issue as well, and couldn't resolve it for anything. I resorted to simply copy/pasting a known usable model pattern similar to what I wanted (a custom sized running bond) and then modified the name and the numbers depicting the line offsets and shifts. Worked.

Never did find out what 'syntax' error triggered my 'from scratch' .pat

Hope that helps,

nancy.mcclure
2010-07-21, 05:14 AM
to: hugh.69031 (hatchkit)

I've just begun working with your product, and found that a shallow arc from an .acad dxf when imported into Hatchkit 2.7 created a peaked line rather than 'reading' the arc. Any recommendations of settings I should investigate to resolve? I'll take my question offline, if more appropriate ;) - if so, please contact me through AUGI messages.

Thanks!

hugh.69031
2010-07-22, 12:24 AM
Nancy,

It's off-topic but briefly all hatch patterns are built from a collection of straight line segments so curves must be approximated by chords controlled by the maximum allowed deviation between an arc and its approximating chords. As at HatchKit 2.7 the maximum is a fixed factor of pattern size.

The workaround is to replace the arc with your own line segments if the automated approximation doesn't get it right.

Hugh Adamson
www.hatchkit.com.au (http://www.hatchkit.com.au)

nancy.mcclure
2010-07-22, 12:39 AM
Thanks, Hugh, I'll give it a shot!