Author Topic: Custom hatch issues  (Read 2774 times)

0 Members and 1 Guest are viewing this topic.

Barry Clark

  • Guest
Custom hatch issues
« on: August 10, 2006, 12:05:42 PM »
OK, I made a test hatch pattern just so I can get my feet wet with the process. I borrowed the definition from a tutorial site. Worked yesterday, doesn't work today. I tried everything.

I even went and borrowed from the ACAD.PAT file this:
Code: [Select]
*ANGLETEST, Angle test
0, 0,0, 0,.275, .2,-.075
90, 0,0, 0,.275, .2,-.075

then saved it as Angle Test.pat

and I still get an error that says there is a problem in the pattern file.

Any ideas? Something I overlooked?

Sdoman

  • Guest
Re: Custom hatch issues
« Reply #1 on: August 10, 2006, 12:57:02 PM »
Here are a couple errors I've seen:

Check that there is a blank line at the end of the file.

Only one pattern allowed per file.

Barry Clark

  • Guest
Re: Custom hatch issues
« Reply #2 on: August 10, 2006, 01:06:17 PM »
Thanks for the reply.

I checked my file and there is only one pattern and no empty blanks.

I modified the file to read as follows:
Code: [Select]
*testthing, test thing
45,0,0,0,.25

It got me a little further. I can now see the swatch in the window of the Hatch Edit box; however, when I try to apply, on the command line, I get this:

"Bad pattern definition file:
Missing parameter on line 2."

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Custom hatch issues
« Reply #3 on: August 10, 2006, 01:26:27 PM »
Hi Barry,
Both of the files work for me. Make sure the file name is identical to the pattern name and that you have a CarriageReturn after the last character.

Barry Clark

  • Guest
Re: Custom hatch issues
« Reply #4 on: August 10, 2006, 01:28:46 PM »
Hi Barry,
Both of the files work for me. Make sure the file name is identical to the pattern name and that you have a CarriageReturn after the last character.
Hey Jeff. Thanks for the reply. CarriageReturn? I am familiar with this in VB, but what is that in this case? Is it \r? How do I apply it?

would it be
Code: [Select]
*testthing, test thing
45, 0,0, 0,.25\r
« Last Edit: August 10, 2006, 01:39:41 PM by Barry Clark »

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Custom hatch issues
« Reply #5 on: August 10, 2006, 01:43:21 PM »
Hit ENTER.......
Code: [Select]
*testthing, test thing
45, 0,0, 0,.25

Note the blank line after the ....,.25

Barry Clark

  • Guest
Re: Custom hatch issues
« Reply #6 on: August 10, 2006, 01:43:53 PM »
Oh, for the love of Pete. I am just trying to be stupid, aren't I?

*hits ENTER*

Barry Clark

  • Guest
Re: Custom hatch issues
« Reply #7 on: August 10, 2006, 01:56:12 PM »
Can shapefiles be inserted?

I tried something like this and the shapes were not inserted.
Code: [Select]
*testthing, test thing
45, 0, 0, 0, .25, .5,-.05,[X,X.shx,S=1,R=0.0,X=0.0,Y=0.0],-.05

Any thoughts?

SPDCad

  • Bull Frog
  • Posts: 453
Re: Custom hatch issues
« Reply #8 on: August 10, 2006, 03:38:56 PM »
Is the hatch pattern file name the same as hatch pattern name?
ie.
file name = ANGLETEST.pat

Pattern code:
Code: [Select]
*ANGLETEST, Angle test
0, 0,0, 0,.275, .2,-.075
90, 0,0, 0,.275, .2,-.075

You get an error message when they differ. Usually this is a common error I make with my custom hatch patterns.

Hope it helps.
AutoCAD 2010, w/ OpenDCL

visit: http://reachme.at/spd_designs

Sdoman

  • Guest
Re: Custom hatch issues
« Reply #9 on: August 10, 2006, 05:36:50 PM »
Jeff said it better: "Carriage Return".  That's what I meant by blank line at EOF, sorry for the confusion...  *typing on old typewriter* tat, tat, tat, tat, ta, tat, DING, Return!