returning the last scale factor in a script

Discussion in 'AutoCAD' started by Pete Dibbs, Jun 22, 2004.

  1. Pete Dibbs

    Pete Dibbs Guest

    Hi all

    I've been writing a scipt that has to do a dozen different things, the only
    one I can't make it do is return the last scale factor as text and place it
    in the the drawing (so people know for certain that the drawing has been
    scaled by such & such factor)

    Not even sure acad keeps that one,

    Thankyou all in advance for you thoughts

    Pete
     
    Pete Dibbs, Jun 22, 2004
    #1
  2. post the script (or copy to your message) so that we can see if one of the
    values is retrievable.
     
    Alan Henderson @ A'cad Solutions, Jun 22, 2004
    #2
  3. Pete Dibbs

    zeha Guest

    Pete,

    You also can use xdata ('Xdata Attachment' from express tools)
    attach your scale factor to the scaled object
    After it is saved you can it listed by xdlist ('List Entity Xdata' from express tools)

    The commands to append in the script are:
    Command: xdata
    Select object:
    Enter application name:
    yourapp

    YOURAPP new application.

    Enter an option
    [3Real/DIR/DISP/DIST/Hand/Int/LAyer/LOng/Pos/Real/SCale/STr/eXit] <eXit>:
    Real

    Enter real number:
    5

    Enter an option
    [3Real/DIR/DISP/DIST/Hand/Int/LAyer/LOng/Pos/Real/SCale/STr/eXit] <eXit>:

    New xdata appended.

    Good luck
     
    zeha, Jun 22, 2004
    #3
  4. Pete Dibbs

    ECCAD Guest

    If the drawings have a 'common' block insert - such as a Title Block - AND that Title Block is scaled also..you could grab the Title Block, find out if it is 1:1 or not, then place text if scaled.
    In script, just load a Lisp e.g.
    (load "check_scale.lsp")
    And, in that lisp, perform the check on the block, and insert the text also.

    Bob
     
    ECCAD, Jun 22, 2004
    #4
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.