entget giving back bad data

Discussion in 'AutoCAD' started by kemp, Jul 20, 2004.

  1. kemp

    kemp Guest

    I have a routine that runs fine on all but one drawing. Here is my problem:

    If I insert a block
    (command "insert" "detbub" "SCALE" #sclfac pause "0" "" "")
    then use
    (setq last-object (entget(entlast)))

    last-object has the wrong insertion point dxf code 10. If I list the
    object manually it shows the correct insertion point.

    Is there something in the drawing itself that could cause this weird
    result? I changed the base and audited the drawing to see if that
    affected it but it did not.

    Any ideas?

    thanks, kemp
     
    kemp, Jul 20, 2004
    #1
  2. kemp

    T.Willey Guest

    Maybe the coordinate system? UCS vs. WCS. That is the only thing I can think of.

    Tim
     
    T.Willey, Jul 20, 2004
    #2
  3. kemp

    RichardG Guest

    check "insbase"
    richard
     
    RichardG, Jul 20, 2004
    #3
  4. kemp

    RichardG Guest

    check "insbase"
     
    RichardG, Jul 20, 2004
    #4
  5. kemp

    kemp Guest

    That was it!

    Thanks Tim

    kemp
     
    kemp, Jul 21, 2004
    #5
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.