Results 1 to 6 of 6

Thread: Object snaps not working in lisp routines in 2012

  1. #1
    Member
    Join Date
    2002-04
    Posts
    4
    Login to Give a bone
    0

    Default Object snaps not working in lisp routines in 2012

    recently I upgraded from 2011 to 2012 and now a lot of my lips routines don't work correctly. The issue seems to be with object snaps, if I set the osmode before a command, everything is fine but when I try to use specific object snaps in a command acad won't use them and defaults to "none". Hope this makes sense, I know very little about lisp. Here is a portion of a routine that shows what I am talking about.

    (COMMAND"PLINE" "END" PAUSE "NON" PAUSE "NON" PAUSE "END,QUA" PAUSE "")

    Tia,
    Jeff

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,601
    Login to Give a bone
    0

    Default Re: Object snaps not working in lisp routines in 2012

    I'm confused... In your post you complain about 'non' being applied, yet the code you posted (without [code ] tags) explicitly specifies 'non'... Please clarify.

  3. #3
    Member
    Join Date
    2002-04
    Posts
    4
    Login to Give a bone
    0

    Default Re: Object snaps not working in lisp routines in 2012

    Sorry for the confusion, I was talking about all the osnaps in the example I gave. The example shows how the osanps are supposedd to work, the first pick is an endpoint, the next two don't' use an osnap and the last pick is either an endpoint or quadrant, this has worked fine in every version from 2000i to 2011. when I run the lisp routine in 2012, it's like my osnaps were turned off, I still get 4 picks, but no osnaps. I can set osmode before the command but it messes up my middle two picks.

  4. #4
    Certifiable AUGI Addict irneb's Avatar
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Object snaps not working in lisp routines in 2012

    All I can think of which might affect this is the OSnapCoord sysvar. Though I can't see why it should disallow forced snaps. It must be something strange with your setup, on my Vanilla 2012 your code works perfectly, no matter what my OSMode is set to.

    Are you using a localized (different language than English) version of ACad? If so try adding an underscore prefix. E.g. "_END". Could you perhaps copy your command-line messages here (press F2 to see the history).
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

  5. #5
    Member
    Join Date
    2008-08
    Posts
    25
    Login to Give a bone
    0

    Default Re: Object snaps not working in lisp routines in 2012

    Thanks for the suggestions, I will give them a try tonight when I get home. I am hoping it's just a system variable or setting that is easily fixed. Having almost 30-40 of my routines not working correctly is frustrating.

    I'm using the English version of ADT as acad, I was doing the same with 2011 and everything worked fine.

  6. #6
    Member
    Join Date
    2002-04
    Posts
    4
    Login to Give a bone
    0

    Default Re: Object snaps not working in lisp routines in 2012

    Thanks irneb, changing the system variable did the trick, don't know how it was changed but that did it.

Similar Threads

  1. 2010: Civil 3D- object snaps quit working
    By hankl32211636161 in forum AutoCAD 3D (2007 and above)
    Replies: 5
    Last Post: 2012-10-31, 02:44 PM
  2. 2012: In-place sweep object style not working
    By myBIMhero in forum Revit Architecture - General
    Replies: 0
    Last Post: 2012-08-15, 10:54 PM
  3. 2012 LT Question (Loading Lisp Routines)
    By jdcincy in forum AutoLISP
    Replies: 3
    Last Post: 2011-07-27, 01:36 PM
  4. My startup suite lisp routines are not working properly
    By jim.dozorec in forum AutoCAD General
    Replies: 6
    Last Post: 2007-09-12, 01:25 PM

Posting Permissions

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