Error, bad arguement type: 2d/3d point

Discussion in 'AutoCAD' started by pi, Jul 19, 2003.

  1. pi

    pi Guest

    Howdy all, its been a while since I queried anything.
    In this case its an error message I get quite often,
    which tells me I obviously havent learned from any
    previous mistakes I've made.
    Anyhow, just what does this error message mean?
    I can post the lisp in question if necessary.
    As usual thanks to all repliers.

    pi
     
    pi, Jul 19, 2003
    #1
  2. pi

    R.K. McSwain Guest

    It means you have passed a variable containing the wrong data type to a
    function that is expecting a point. For example.

    (setq a "" b (getpoint))
    (distance a b)

    Since a is a string, you get the error [; error: bad argument type: 2D/3D
    point: ""]
     
    R.K. McSwain, Jul 19, 2003
    #2
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.