Author Topic: Uknown Pattern Name....?  (Read 1459 times)

0 Members and 1 Guest are viewing this topic.

Bill Tillman

  • Guest
Uknown Pattern Name....?
« on: February 23, 2012, 08:44:52 AM »
I am debugging my code and have corrected as much as I can. Still there are these two pesky messages about "Unknown pattern name" which continue to show up each time the program is run. In the whole program there are only two times which I invoke the hatch command and both times it works correctly. I have double checked spelling, syntax, etc... and made darn sure the "AR-CONC" hatch is present and accounted for in my acad.pat file. And the hatch commands work perfect. Still each time the program runs, it prints "Unknown pattern name" twice before exiting cleanly.

Is this something I just have to live with?

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Uknown Pattern Name....?
« Reply #1 on: February 23, 2012, 09:09:26 AM »
With a code example we must guess at the problem. My guess is that you are using a
(command ".hatch" ....) and too many "" or wrong order. I would set CMDECHO to 1
and try to track the error.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Bill Tillman

  • Guest
Re: Uknown Pattern Name....?
« Reply #2 on: February 23, 2012, 09:23:47 AM »
Code: [Select]
(command "._HATCH" "P" "AR-CONC" "0.25" "0.0" r1 "")
It's a relatively simple command and like I said, it executes fine. It's just that the message about the "Unknown pattern name" show up.

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Uknown Pattern Name....?
« Reply #3 on: February 23, 2012, 10:16:29 AM »
Have you tried loading the patterns manually?  You may have a bad hatch pattern in the definition files.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}