Jump to content

Recommended Posts

Posted

Tried various code formats to create this hatching pattern, but it still comes up as error reading when I try to insert it.

untitled.jpg

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

Posted

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.

Posted

Thats not working for me unfortunatley, my coding must be wrong

Posted

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

Posted

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

Posted

Well at least we're mutual in our solution

Posted

Hi Chris,

Just take a time to translate my teach support and some reply yet.

Well see the image

bye

Pascal

hatch create.jpg

Posted

I Tried all of them and still getting an error, even with empty line

Posted

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

Posted

Thanks alot, finally got it working, It must have been the file name

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