What's wrong with this code?

Discussion in 'AutoCAD' started by kemp, Jan 7, 2004.

  1. kemp

    kemp Guest

    (set p2 (vlax-safearray->list
    (vlax-variant-value
    (vlax-get-property detBub 'InsertionPoint))))

    detBub is a block. If I run this:
    (vlax-safearray->list
    (vlax-variant-value
    (vlax-get-property detBub 'InsertionPoint)))
    the 3d point is displayed, but I can't setq it as p2. What am I missing?

    Thanks!
    kemp
     
    kemp, Jan 7, 2004
    #1
  2. kemp

    Rudy Tovar Guest

    (setq ins (vla-get-insertionpoint <acadobject>))?
     
    Rudy Tovar, Jan 7, 2004
    #2
  3. kemp

    kemp Guest

    That looks quite a bit easier... Thanks!

    kemp


     
    kemp, Jan 7, 2004
    #3
  4. kemp

    Mark Propst Guest

    What am I missing?

    Q


    :)
     
    Mark Propst, Jan 7, 2004
    #4
  5. You're using (set) rather than (setq).
     
    Tony Tanzillo, Jan 7, 2004
    #5
  6. kemp

    kemp Guest

    OK, the missing "Q" is probably what I needed. I used the simpler method to
    get the insertion point too. Thanks to all!

    kemp
     
    kemp, Jan 7, 2004
    #6
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.