nearest snap to non-uniformly scaled block

Discussion in 'AutoCAD' started by Joe Burke, Jun 17, 2004.

  1. Joe Burke

    Joe Burke Guest

    Using 2004.

    (setq ent (nentselp "\nSelect pline in a non-uniformly scaled block: "))
    (setq pt (osnap (cadr ent) "_NEAR")) ;returns nil

    I guess this makes sense since you can't nearest snap to such an object in the
    graphics window.

    Question: is that the only condition which would cause the osnap function to return
    nil? IOW, can I assume for error trapping purposes, the user picked an object type
    contained in a non-uniformly scaled block which doesn't support nearest snap?

    Note, nearest snap works with a line contained in a non-uniformly scaled block, but
    not with a lwpline. I wonder why.

    Thanks for any thoughts.

    Joe Burke
     
    Joe Burke, Jun 17, 2004
    #1
  2. Joe Burke

    James Allen Guest

    From Juerg in my post "vlax-curve-getclosestpointto... or endpoint of?"

    ------------------------------------------------------------------------
    Forgot one:

    Circles, arcs and arc segments in old style polylines, not parallel to the
    current UCS have no osnap 'NEAR'.
    This is an extremely ugly (and old) bug in AutoCAD.

    Cheers
     
    James Allen, Jun 17, 2004
    #2
  3. Joe Burke

    Joe Burke Guest

    Thanks, James. That will need some thought.

    Joe Burke
     
    Joe Burke, Jun 18, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.