+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,791

    Default Line type load ok in 2011 not in 2012

    Registered forum members do not see this ad.

    The following works ok in VBA all versions up to 2011 but will not work with 2012 checked linetype does not exist hence load.

    Any ideas ?

    Sub test()
    ThisDrawing.Linetypes.Load "FENCE", "s:\autodesk\supportfiles\custom.lin"
    ThisDrawing.Linetypes.Load "DASHED2", "s:\autodesk\supportfiles\ACAD.lin"
    End Sub
    Last edited by BIGAL; 11th May 2011 at 03:42 am. Reason: VBA code

  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

    What are you trying to do? If this is VBA, you may need some add-on module.
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



  3. #3
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,791

    Default

    This is just the relevant lines out of larger vba code it will work as a test sub, again works perfect in 2011.

    In 2012 rem'ed the line load code and the total sub works ok the VBA enabler is loaded.

  4. #4
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,791

    Default

    For any one interested the following works the linetype files are in a pre defined support path location.

    Sub test()
    ThisDrawing.Linetypes.Load "FENCE", "custom.lin"
    ThisDrawing.Linetypes.Load "DASHED2", "ACAD.lin"
    End Sub

  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

    Thanks for posting. I haven't had a chance to look into it and basically had forgot about this thread.
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



  6. #6
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,791

    Default

    Registered forum members do not see this ad.

    The bigger question though is what else have I done and suddenly will not work with 2012 guess I will find out, it must be in the vba enabler. I may post to Autodesk as a bug.

Similar Threads

  1. Civil 3D 2011 VBA Load Error
    By bschlang in forum AutoCAD Bugs, Error Messages & Quirks
    Replies: 1
    Last Post: 27th Feb 2012, 11:39 am
  2. Need Line Type
    By T704 in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 0
    Last Post: 16th Dec 2009, 06:53 pm
  3. Line type
    By Littlemouse in forum AutoCAD General
    Replies: 2
    Last Post: 15th Mar 2009, 11:59 pm
  4. Line Type
    By GIB39 in forum AutoCAD Beginners' Area
    Replies: 11
    Last Post: 26th Feb 2009, 11:53 pm
  5. Load VBA via command line?
    By P Zero in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 14th Aug 2007, 11:17 am

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