Get Global Scale

Discussion in 'AutoCAD' started by bsande1, Oct 8, 2004.

  1. bsande1

    bsande1 Guest

    I'm upgrading from ACAD2000 to ACAD2004, I've run into a little snag in my menu structure.

    In our present ACAD2000 menus, we insert blocks and have ACAD scale them automatically to the appropriate size for the drawing we are using, by using a GETGLOBALSCALE function. One line of code looks like this:

    [RCh_T_STD_FL,STANDARD FLUORESCENT LAMPS - HORIZONTAL]^C^C(SETQ LN (GETVAR "CLAYER")) -LA T RC S RC ;; (GETGLOBALSCALE) -INSERT *RCh_T_STD_FL 0,0;!SCALE;;^C^C(SETVAR "CLAYER" LN);^C^C^C

    But that doesn't work in ACAD2004. Is there a new code that does this functionality in AutoCAD 2004?

    Thnax,

    Bill Sander
     
    bsande1, Oct 8, 2004
    #1
  2. bsande1

    dblaha Guest

    (GETGLOBALSCALE) appears to be a custom function you had defined elsewhere. It appears to assign the value to a variable called SCALE (which is a really bad idea since there is already a command in AutoCAD that uses that name) and that variable is then used while executing your insert statement. Your problem may simply be that you no longer have the GETGLOBALSCALE function loading into AutoCAD now that you've switched to 2004.

    Dave
     
    dblaha, Oct 8, 2004
    #2
  3. bsande1

    bsande1 Guest

    Thanx!

    Found it, got it working.

    Bill Sander
     
    bsande1, Oct 8, 2004
    #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.