Setting Profiles after Acad is launched.

Discussion in 'AutoCAD' started by Tim Riley, Oct 11, 2004.

  1. Tim Riley

    Tim Riley Guest

    Is it possible to set a profile after AutoCAD is launched?

    I'm trying to force the active profile to <<ACADMPP>> for AutoCAD Mechanical
    2005 but when I try it the menu's load fine but all the command specific to
    Mechanical aren't available. I'm trying this from python so maybe that's the
    problem, but I doubt it. Any ideas?

    **********code**********
    import win32com.client
    acad = win32com.client.Dispatch("Autocad.Application.16.1")
    acad.Preferences.Profiles.ActiveProfile = "<<ACADMPP>>"
    acad.Visible = True
    **********code**********

    ~Tim Riley
     
    Tim Riley, Oct 11, 2004
    #1
  2. There's more to it with verticals. You'll also need to make sure the
    supporting arx files load.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Oct 11, 2004
    #2
  3. Tim Riley

    Tim Riley Guest

    I should have known that. Thanks Mike.

    ~Tim Riley
     
    Tim Riley, Oct 11, 2004
    #3
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.