ChrisMcfarlane Posted June 7, 2010 Posted June 7, 2010 Tried various code formats to create this hatching pattern, but it still comes up as error reading when I try to insert it. The code I used was something along the lines off *RAWMATERIAL 90,0,0,0,5,5,-4 90,2,5,0,0,9,3,-4 0,0,0,0,9,3,-4 Any suggestions Quote
numberOCD Posted June 7, 2010 Posted June 7, 2010 Is it coming out really jagged and misalligned? If so use (command: OSNAPHATCH) and set it to 1, then use (command: HPORIGIN) to specify the starting point of your hatch pattern. I'm reviewing your code right now to see if I can find any glitch. Quote
ChrisMcfarlane Posted June 7, 2010 Author Posted June 7, 2010 Thats not working for me unfortunatley, my coding must be wrong Quote
numberOCD Posted June 7, 2010 Posted June 7, 2010 Looking at your .pat code I found some problems. 1. Since you have a 5 Unit gap between horizontal and vertical pairs to make the shape and a 4 Unit gap between shapes you need lines for the left vertical, right vertical, bottom horizontal, upper horizontal and the stud. 2. The 3 Unit stud would need the 9 Unit offset like all the other pieces, so you would make the line +3,-6 instead of +3,-4 I still can't quite understand what you were trying to get with the third line code in there. Here is an address that should explain it all well. http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS73099cc142f4875513fb5cd10c4aa30d6b-7e2c.htm,topicNumber=d0e368764 To tide you over, here is a code that should succeed at the hatch pattern you specified. *RAWMATERIAL, RAW 90,0,0,0,9,5,-4 0,0,0,0,9,5,-4 90,5,0,0,9,5,-4 0,0,5,0,9,5,-4 90,2.5,5,0,9,3,-6 Quote
A1DWG Posted June 7, 2010 Posted June 7, 2010 Chris, I think you need additional lines of code to allow for the spacings, ie if the squares and gaps were both the same dims three lines of code would work. Try: *RAWMATERIAL 90,0,0,0,9,5,-4 90,5,0,0,9,5,-4 0,0,0,0,9,5,-4 0,0,5,0,9,5,-4 90,2.5,5,0,9,3,-6 I got timed out and did not see NumberOCD's reply before posting Quote
rvpas Posted June 7, 2010 Posted June 7, 2010 Hi Chris, Just take a time to translate my teach support and some reply yet. Well see the image bye Pascal Quote
ChrisMcfarlane Posted June 8, 2010 Author Posted June 8, 2010 I Tried all of them and still getting an error, even with empty line Quote
rvpas Posted June 8, 2010 Posted June 8, 2010 Hi Chris, Strange have you got the same name of file and your hach ? and when I said empty line you just have to type enter at the end of your last line and save like that and if you really dont fix your problem, try my hatch pattern attached Pascal RAWMATERIAL.zip Quote
ChrisMcfarlane Posted June 8, 2010 Author Posted June 8, 2010 Thanks alot, finally got it working, It must have been the file name Quote
Recommended Posts
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.