automate "drag 'n drop" units

Discussion in 'AutoCAD' started by macropolo, Sep 21, 2004.

  1. macropolo

    macropolo Guest

    Hi!

    I have a large collection of drawings for which the "drag 'n drop" units for blocks (in the Units dialogue) are set to Inches, while the normal units for the drawings are set to mm.

    I'd like to write a macro to change this setting with a click on a button but I can't seem to find any handle for it.

    I can read the property with the following code:

    Sub UnitsToMM()
    Dim myInsUnits As Integer

    myInsUnits = acInsertUnitsMillimeters
    MsgBox myInsUnits

    End Sub

    but I can't use autocad.acinsertunits to set the property. If I use this, I get an errormessage that it is a module, not a property.

    Can anyone help?

    Cheers, macropolo
     
    macropolo, Sep 21, 2004
    #1
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.