Changing FIELD units

Discussion in 'AutoCAD' started by ajm, Jan 24, 2005.

  1. ajm

    ajm Guest

    Does anyone know how to modify the following field code which displays the area of an object in base units (millimetres squared) to have it display in (metres squared). I know you have to multiply by 1000, but where does this fit in, in the code below.

    %<\AcObjProp Object(%<\_ObjId 2130353528>%).Area \f "%lu2">%

    Any help greatly appreciated.

    Regards
    Andrew McDonald
     
    ajm, Jan 24, 2005
    #1
  2. ajm

    Adesu Guest

    Like this may be

    (defun mm2mtr (a)
    (/ a 1000.0)
    )

    area of an object in base units (millimetres squared) to have it display in
    (metres squared). I know you have to multiply by 1000, but where does this
    fit in, in the code below.
     
    Adesu, Jan 24, 2005
    #2
  3. ajm

    pdb Guest

    As far as i know, you can't do mathematical operations with fields.

    Peter D
     
    pdb, Jan 24, 2005
    #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.