Results 1 to 3 of 3

Thread: getpat.lsp error

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2017-03
    Posts
    1
    Login to Give a bone
    0

    Question getpat.lsp error

    Hello everyone?

    I got a recommendation for a Lisp named getpat.lsp to export AutoCAD's hatch as a .pat. () <- Lisp Code

    Many people seem to be using this Lisp well, but I have an error.

    "
    Command: GETPAT
    Select hatch: ; error: bad argument value: positive 0
    "

    I tested both versions of AutoCAD 2011-2017, but the results were the same. Also, no matter how I search, there is no advice to solve this problem.

    I have already spent too much time solving this problem. If you know the solution to this problem, please let me know.

  2. #2
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: getpat.lsp error

    Two suggestions.

    1. Contact the author of that lisp file. Nobody knows it better than him.

    2. Post the DWG with the hatch pattern here, someone may be able to help. But w/o the drawing, we are just guessing.
    R.K. McSwain | CAD Panacea |

  3. #3
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: getpat.lsp error

    I've used it for many years, never had a problem. It outputs a pattern file, but I modified it to place it in a folder of my choosing by replacing line 58
    Code:
    (setq outf (strcat hnam ".pat"))
    with
    Code:
    (setq outf (vl-string-subst (strcat hnam ".pat") "getpat.lsp" (findfile "getpat.lsp")))
    to place the pattern file in the same folder as "getpat.lsp". You could also call out a folder like:
    Code:
    (setq outf (strcat "G:\\BeaufordT\\Autocad\\Application Data\\Customization" hnam ".pat"))
    Like rkmcswain said if that doesn't help post the drawing. At worst we can post the pattern file for you.

    Tested in version 2017 of Civil 3D.

Similar Threads

  1. Replies: 0
    Last Post: 2011-03-17, 06:54 PM
  2. Error closes Revit: An error has occurred while drawing the contents of this window.
    By chasen_forever in forum Revit Architecture - General
    Replies: 6
    Last Post: 2010-05-07, 03:38 PM
  3. Replies: 8
    Last Post: 2009-10-27, 12:03 PM
  4. Error when loading custom linetype - Error reading shape file
    By drafting.82475 in forum AutoCAD Customization
    Replies: 4
    Last Post: 2007-04-19, 07:36 AM
  5. Replies: 2
    Last Post: 2007-03-02, 08:57 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •