+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 28
  1. #1
    Junior Member
    Using
    Architecture 2011
    Join Date
    Aug 2010
    Posts
    11

    Default Script to change drawing UNITS

    Registered forum members do not see this ad.

    I am trying to creat a script....

    I'm sure it is easy but to my novice brain I can't get it to work.
    I simply want to change a drawings units to millimeters and not rescale anything.

    I have tried -units but it doesn't give the option to change the actuall Drawing Units:

    Any help would be appreciated
    Cheers
    Greg

  2. #2
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,133

    Default

    I have renamed and relocated your thread to a better location for related responses.

    Try checking "Similar Threads" at the bottom of this page.

    All you do when creating a script is invoke a command on the command line and answer the prompts. Where are you hanging up?

    Code:
    Command: -units
    Report formats:      (Examples)
    
      1.  Scientific      1.55E+01
      2.  Decimal         15.50
      3.  Engineering     1'-3.50"
      4.  Architectural   1'-3 1/2"
      5.  Fractional      15 1/2
    
    With the exception of Engineering and Architectural formats,
    these formats can be used with any basic unit of measurement.
    For example, Decimal mode is perfect for metric units as well
    as decimal English units.
    
    Enter choice, 1 to 5 <4>:
    
    Enter denominator of smallest fraction to display
    (1, 2, 4, 8, 16, 32, 64, 128, or 256) <32>:
    
    Systems of angle measure:      (Examples)
    
      1.  Decimal degrees           45.0000
      2.  Degrees/minutes/seconds   45d0'0"
      3.  Grads                     50.0000g
      4.  Radians                   0.7854r
      5.  Surveyor's units          N 45d0'0" E
    
    Enter choice, 1 to 5 <1>:
    Enter number of fractional places for display of angles (0 to 8) <2>:
    
    
    Direction for angle 0.00:
       East    3 o'clock  =  0.00
       North  12 o'clock  =  90.00
       West    9 o'clock  =  180.00
       South   6 o'clock  =  270.00
    Enter direction for angle 0.00 <0.00>:
    
    Measure angles clockwise? [Yes/No] <N>
    Maybe you are wanting to change your Dimensions instead?

    If you want to change the physical drawing from one that is 1 = 1 inch, 1 = 1 foot, 1 = 1mm, 1 = 1cm, 1 = 1m to another then rescaling the drawing is your only option.
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



  3. #3
    Senior Member
    Computer Details
    sparkyuk's Computer Details
    Operating System:
    Windows 7
    Using
    AutoCAD 2010
    Join Date
    Jan 2007
    Location
    UK
    Posts
    303

    Default

    If you have drawn in model space at 1-1 then its should only be a matter of selecting the correct scale when printing or saving your drawing shouldnt it ?

  4. #4
    Junior Member
    Using
    Architecture 2011
    Join Date
    Aug 2010
    Posts
    11

    Default

    Hi thanks for your reply.
    I have hundreds of drawings I have received. Many of them have the units set to inches, so I have to type UNITS and set it to millimeters, I am hoping to create a script to automate this process as well as setting a few other pararmeter but I can't get the units bit to work.

    -units does not let me change the 'Drawing Units'

  5. #5
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,133

    Default

    Quote Originally Posted by gsteel View Post
    Hi thanks for your reply.
    I have hundreds of drawings I have received. Many of them have the units set to inches, so I have to type UNITS and set it to millimeters, I am hoping to create a script to automate this process as well as setting a few other pararmeter but I can't get the units bit to work.

    -units does not let me change the 'Drawing Units'
    Yes it does. You just do not understand what drawing units "ARE" and "ARE NOT".

    Quote Originally Posted by SLW210 View Post
    I have renamed and relocated your thread to a better location for related responses.

    Try checking "Similar Threads" at the bottom of this page.

    All you do when creating a script is invoke a command on the command line and answer the prompts. Where are you hanging up?

    Code:
    Command: -units
    Report formats:      (Examples)
    
      1.  Scientific      1.55E+01
      2.  Decimal         15.50
      3.  Engineering     1'-3.50"
      4.  Architectural   1'-3 1/2"
      5.  Fractional      15 1/2
    
    With the exception of Engineering and Architectural formats,
    these formats can be used with any basic unit of measurement.
    For example, Decimal mode is perfect for metric units as well
    as decimal English units.
    
    Enter choice, 1 to 5 <4>:
    
    Enter denominator of smallest fraction to display
    (1, 2, 4, 8, 16, 32, 64, 128, or 256) <32>:
    
    Systems of angle measure:      (Examples)
    
      1.  Decimal degrees           45.0000
      2.  Degrees/minutes/seconds   45d0'0"
      3.  Grads                     50.0000g
      4.  Radians                   0.7854r
      5.  Surveyor's units          N 45d0'0" E
    
    Enter choice, 1 to 5 <1>:
    Enter number of fractional places for display of angles (0 to 8) <2>:
    
    
    Direction for angle 0.00:
       East    3 o'clock  =  0.00
       North  12 o'clock  =  90.00
       West    9 o'clock  =  180.00
       South   6 o'clock  =  270.00
    Enter direction for angle 0.00 <0.00>:
    
    Measure angles clockwise? [Yes/No] <N>
    Maybe you are wanting to change your Dimensions instead?

    If you want to change the physical drawing from one that is 1 = 1 inch, 1 = 1 foot, 1 = 1mm, 1 = 1cm, 1 = 1m to another then rescaling the drawing is your only option.
    http://help.autodesk.com/kb/display.do?ROW_ID=1-GQC-870

    I have in my current drawing a building that is 60'-0" (as dimensioned) or "as drawn" it is 720 DRAWING UNITS because I drew with 1 DRAWING UNIT to equal 1 INCH (60 x 12 = 720). Unless I rescale it the actual drawing will always be 720 DRAWING UNITS.
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



  6. #6
    Forum Deity Jack_O'neill's Avatar
    Computer Details
    Jack_O'neill's Computer Details
    Operating System:
    xp
    Discipline
    Architectural
    Jack_O'neill's Discipline Details
    Discipline
    Architectural
    Details
    The bulk of my business is commercial curtainwall, site plans and floor plans. I do occasionally get a bit of tool and die, and the odd house now and again.
    Using
    AutoCAD 2010
    Join Date
    Sep 2008
    Location
    lost in the Arkansas wilderness
    Posts
    2,146

    Default

    Perhaps we are suffering from a terminology problem. Gsteel, are you simply wishing to convert a drawing done in inches to millimeters? In other words, if you have a dimension that says 1" you want it to say 25.4mm, right? There are a couple of ways to do this. One is to go to the format menu, down to dimension style. Then pick one and click modify. Click on the tab that says "alternate units". Once that is done, look for "display alternate units" and put a check in the box. hit ok, then "set current" and "close". Any dimensions on your drawing using that dimension style will then display the imperial and the metric numbers.

    If you want only the metrics, instead of clicking on the "alternate units" tab, click on "primary units". Down near the middle of the dialog box you'll see "measurement scale" with a box that says "scale factor". Enter 25.4 there and your dims will be in millimeters instead of inches.
    Never try to teach a pig to sing. It wastes your time and annoys the pig. -Robert Heinlein

  7. #7
    Luminous Being dbroada's Avatar
    Computer Details
    dbroada's Computer Details
    Operating System:
    XP Pro
    Computer:
    Dell
    CPU:
    Intel Xeon 2.13GHz
    RAM:
    2GB
    Graphics:
    NVIDA Quadro FX 580
    Monitor:
    DELL 23" & SAMSUNG 21"
    Discipline
    Electro/Mech
    dbroada's Discipline Details
    Occupation
    Design Engineer
    Discipline
    Electro/Mech
    Using
    Electrical 2013
    Join Date
    Nov 2005
    Location
    Sussex, UK
    Posts
    5,068

    Default

    from a similar thread the other day didn't somebody say ACAD Arch was different from vanilla for this sort of problem?
    "That's it. It's one thing for a ghost to terrorize my children, but quite another for him to play my Theremin." Homer Simpson

    Dave

  8. #8
    Junior Member
    Using
    Architecture 2011
    Join Date
    Aug 2010
    Posts
    11

    Default

    Ok maybe I am being a bit thick here.....

    I have drawing all drawn at 1:1 scale in model space. Under the UNITS command they are all set to inches and I want them as mm. I can do it manuallt by typing UNITS and selecting mm from the first drop down (Drawing Units). It then asks me if I want to rescale the drawing and I say no. I have hundred of these to do I was simply hoping there was a script that would perform this automated. I am using Architecture 2011 if that is relevant.

    @SLW210 - I am quite sure I am aware what a unit is thanks for the info tho.
    @Jack - Our dimension come out in mm, I have a script that sets up my dims for me. thanks tho
    @dbroada - I'm not sure what Vanilla is? In Autocad terms anyway

  9. #9
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,133

    Default

    It is your option to refuse all the sound advise given you here, I hope you get this figured out.

    In case you want to know, the answer you seek is in my original response to your question.

    If you desire to be rude, then I will help you no further.
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



  10. #10
    Junior Member
    Using
    Architecture 2011
    Join Date
    Aug 2010
    Posts
    11

    Default

    Registered forum members do not see this ad.

    I have in no way been rude to any one please post my previous reply as proof!

    In have indeen been through you first post as I have been though the help files I tried all variations and options non of which change the setting required.

Similar Threads

  1. change my drawing units to millimeters
    By dznytoy in forum AutoCAD Drawing Management & Output
    Replies: 12
    Last Post: 20th Apr 2013, 01:52 am
  2. HELP!! How do I change to different drawing units
    By Currahee in forum AutoCAD General
    Replies: 3
    Last Post: 7th Jul 2009, 02:48 pm
  3. Cannot change units
    By elashish in forum AutoCAD Beginners' Area
    Replies: 12
    Last Post: 6th Jun 2008, 11:11 pm
  4. Units in script
    By steve @ mp in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 30th Jul 2007, 11:48 am
  5. drawing units - change from inches to feet via VBA
    By vindimy in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 18th Nov 2005, 03:58 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts