Results 1 to 5 of 5

Thread: Some hatches are comming in at the wrong scale... sort of.

  1. #1
    I could stop if I wanted to
    Join Date
    2011-09
    Posts
    308
    Login to Give a bone
    0

    Unhappy Some hatches are comming in at the wrong scale... sort of.

    OK, I'm using LISP to do all this so I hope this is the best forum to post in.

    First, thanks to the mighty Lee Mac who helped me a great deal with this initially.


    Anyway,

    I have hatches set up using LISP in acaddoc.lsp. Here's an example of one:

    Code:
    ;Aggregate
    (defun AGGREGATE ( / TMP CAS NHS)
        (setvar "CMDECHO" 0)
        (setq TMP (getvar 'clayer))
        (setq CAS (getvar 'cannoscalevalue))
        (setq NHS (/ 0.4300 CAS))
        (command
            "_.-layer" "_m" "L-HTCH-THIN" "_c" "1" "L-HTCH-THIN" ""
            "_.-hatch" "_p" "AGGREGAT" NHS "0" "_a" "_a" "_y" "" ""
            "cmdecho" "1"
            "_.-hatch"
        )
        (while (= 1 (logand 1 (getvar 'cmdactive))) (vl-cmdf "\\"))
        (setvar 'clayer tmp)
        (princ)
    )
    I then call that hatch from the tool palette thusly:

    Code:
    ^C^C(if AGGREGATE (AGGREGATE) (princ "Aggregate not loaded."))

    This was working fine untill some kind of server "issue" last week. IT is not being forthcomming but suffice it to say that that AGGREGAT pattern and a few others went missing.

    No problem, I restored them from my "personal backup"

    Now however, those five patterns that were deleted (and ONLY THOSE) are comming in at 1/12th their expected size!!!.

    Same LISP code, same PAT file, but 1/12th the size.

    So aggregate used to look right at 0.430 (times cannoscalevalue) now needs to be set to 4.800 (times cannoscalevalue). I'm stumped.

    Its almost as if the PAT file had been changed, but as far as I can tell, it's identical. I'm going wacko!!!

    Any guidance at all is greatly appreciated.

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,103
    Login to Give a bone
    0

    Default Re: Some hatches are comming in at the wrong scale... sort of.

    Sounds like a UNITS issue. Maybe this FAQ can help.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  3. #3
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,109
    Login to Give a bone
    0

    Default Re: Some hatches are comming in at the wrong scale... sort of.

    It looks like to me that the Insunits system variable is somehow changing the insertion scale of the hatch pattern.

    Try setting the insunits value to 0 before adding the hatch pattern.

    Maybe 1 or 2 if 0 doesn't work.

    P=
    AutomateCAD

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

    Default Re: Some hatches are comming in at the wrong scale... sort of.

    Quote Originally Posted by jpcadconsulting347236 View Post
    This was working fine untill some kind of server "issue" last week. IT is not being forthcomming but suffice it to say that that AGGREGAT pattern and a few others went missing.

    No problem, I restored them from my "personal backup"

    Now however, those five patterns that were deleted (and ONLY THOSE) are comming in at 1/12th their expected size!!!.

    Same LISP code, same PAT file, but 1/12th the size.

    Its almost as if the PAT file had been changed, but as far as I can tell, it's identical. I'm going wacko!!!

    Any guidance at all is greatly appreciated.
    AutoCAD doesn't provide an easy way to examine a loaded pattern. My guess is that they are not the same. Go to http://www.turvill.com/t2/free_stuff/ and download GETPAT.LSP so you can examine the difference in those patterns and add update your "personal backup".

  5. #5
    I could stop if I wanted to
    Join Date
    2011-09
    Posts
    308
    Login to Give a bone
    0

    Default Re: Some hatches are comming in at the wrong scale... sort of.

    They're the same.

    It turned out to be the the the MEASUREMENT variable was set to 1.

    http://help.autodesk.com/view/ACDLT/...7-A52AC0C7C8FE

    Thanks Gang!!!

Similar Threads

  1. 2012: Surface at wrong scale
    By jmauro930585 in forum AutoCAD Civil 3D - General
    Replies: 1
    Last Post: 2012-12-20, 05:21 PM
  2. 2012: Multiple Anno-Scale Hatches
    By randyspear in forum AutoCAD General
    Replies: 3
    Last Post: 2011-11-09, 06:47 PM
  3. model scale wrong
    By asiple in forum NavisWorks - General
    Replies: 0
    Last Post: 2008-11-12, 11:05 PM
  4. Independent X Y Scale for Hatches
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2008-05-28, 06:45 PM
  5. Material at the wrong scale
    By tim.glass in forum ACA General
    Replies: 4
    Last Post: 2007-11-15, 04:52 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
  •