Results 1 to 2 of 2

Thread: AutoCAD Electrical

  1. #1
    Member
    Join Date
    2002-02
    Posts
    21
    Login to Give a bone
    0

    Default AutoCAD Electrical

    I was wondering how i could have my VB program open AutoCAD Electrical 2005 instead of AutoCAD 2005? I normally just use the code below when i link to autocad. Thanks

    On Error Resume Next
    Set acdApp = GetObject(, "autocad.application")
    If Err.Number <> 0 Then
    Set acdApp = CreateObject("autocad.application")
    Err.Clear
    End If
    acdApp.Visible = True

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    5,920
    Login to Give a bone
    0

    Default Re: AutoCAD Electrical

    When you start Electrical from an icon, what controls how it opens? A profile and an arx or two. The code you have will first grab the first instance it finds. If there is none, it will create one, which uses the last profile that was used. Just take that object and load the necessary arx and apply a profile.
    C:> ED WORKING....

Similar Threads

  1. MA228-1V: AutoCAD® Electrical Is Not Just Electrical Anymore
    By Autodesk University in forum Manufacturing
    Replies: 0
    Last Post: 2015-08-07, 05:33 PM
  2. MA9210-1: Migrating from AutoCAD to AutoCAD Electrical
    By Autodesk University in forum Manufacturing
    Replies: 0
    Last Post: 2014-12-01, 03:23 AM
  3. MA115-4: Migrating from AutoCAD® to AutoCAD® Electrical
    By Autodesk University in forum Manufacturing
    Replies: 0
    Last Post: 2013-05-06, 01:24 AM
  4. MA23-3: Migrating from AutoCAD® to AutoCAD® Electrical
    By Autodesk University in forum Manufacturing
    Replies: 0
    Last Post: 2013-04-17, 04:50 AM
  5. AutoCAD Electrical type Icon Menu in AutoCAD Vanilla !
    By iqbal.ahmad in forum AutoCAD General
    Replies: 1
    Last Post: 2009-04-15, 05:33 AM

Posting Permissions

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