+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Senior Member TroutKing's Avatar
    Discipline
    Electrical
    TroutKing's Discipline Details
    Occupation
    I work as a designer and drafter for a mid sized multi-disciplined engineering firm
    Discipline
    Electrical
    Details
    I am the physical designer in the power/substation group of my company
    Using
    AutoCAD 2010
    Join Date
    May 2007
    Location
    Castle Rock Colorado
    Posts
    141

    Default System variable to set architectural precision?

    Registered forum members do not see this ad.

    good afternoon

    I'm having trouble tracking down a system variable.

    When setting variables I am not able to set my "precision". After changing my units to architectural (which works OK in the following code) I then want to set the precision to 1/128"

    Code:
     
    Sub WHATEVER()
    ThisDrawing.SetVariable "LUNITS", 4
    ThisDrawing.SetVariable "INSUNITS", 1
    ThisDrawing.SetVariable "LWUNITS", 0
    ThisDrawing.SetVariable "MEASUREINIT", 0
    ThisDrawing.SetVariable "LUNITS", 0.0078125 '<------- This does not work
    End Sub
    I realize LUNITS is for decimal use, but I cannot locate it's fractional counterpart
    Any ideas?

  2. #2
    Super Member fixo's Avatar
    Computer Details
    fixo's Computer Details
    Operating System:
    Windows 7
    Motherboard:
    E7500
    CPU:
    Intel(R)Core(TM)2 DUO CPU 2.93HGz
    RAM:
    4098 Gb
    Graphics:
    1024 Gb
    Using
    AutoCAD 2009
    Join Date
    Jul 2005
    Location
    Pietari, Venäjä
    Posts
    1,598

    Default

    See DIMDEC variable
    Code:
    ThisDrawing.SetVariable "DIMDEC", 3
    ??? not sure about
    The soul is healed by being with children. - Fyodor Dostoyevsky, novelist (1821-1881)

  3. #3
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,007

    Default

    To get the 1/128 precision for Architectural units set the LUPREC system variable to 7. The said LUNITS controls only the mode of working units.
    For angles there is the AUNITS and AUPREC pair.
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  4. #4
    Senior Member TroutKing's Avatar
    Discipline
    Electrical
    TroutKing's Discipline Details
    Occupation
    I work as a designer and drafter for a mid sized multi-disciplined engineering firm
    Discipline
    Electrical
    Details
    I am the physical designer in the power/substation group of my company
    Using
    AutoCAD 2010
    Join Date
    May 2007
    Location
    Castle Rock Colorado
    Posts
    141

    Default

    Registered forum members do not see this ad.

    Ah! I think I understand now. Thank you very much for your responses! It worked.

Similar Threads

  1. System Variable SDI
    By KnoJa31 in forum CAD Management
    Replies: 2
    Last Post: 28th Dec 2010, 06:42 pm
  2. System Variable for......
    By wannabe in forum AutoCAD General
    Replies: 8
    Last Post: 27th Nov 2008, 04:23 am
  3. Looking for system variable??
    By Dean07 in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 2nd Apr 2007, 03:10 am
  4. system variable
    By good_m in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 23rd May 2006, 08:16 pm
  5. Looking for System Variable
    By djc in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 13th Apr 2006, 01:26 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