+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Full Member Keywordkid's Avatar
    Computer Details
    Keywordkid's Computer Details
    Operating System:
    Win 7
    Discipline
    Architectural
    Keywordkid's Discipline Details
    Occupation
    CAD Manager
    Discipline
    Architectural
    Using
    AutoCAD 2012
    Join Date
    Jun 2012
    Location
    London, UK
    Posts
    72

    Default Changing Customization path globally

    Registered forum members do not see this ad.

    I'm looking for a way to change the path of the Main Customization file globally, preferrably using the acaddoc.lsp, is this possible.

    How do others push path changes through to accommodate network changes?

    I've learnt about the Setenv control for the support paths but the CUI path is eluding me.

    Hoping for advice.

    Thanks.

  2. #2
    Senior Member
    Using
    AutoCAD 2014
    Join Date
    Sep 2010
    Location
    New Zealand
    Posts
    212

    Default

    In Acaddoc.lsp in the Startup function you could try varying this routine?

    http://forums.autodesk.com/t5/Visual...sp/td-p/853729

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

    Default

    Bit clearer example

    Code:
    (vl-load-com)
    (setq *files*  (vla-get-files  (vla-get-preferences (vlax-get-acad-object))))
    (vla-put-AutoSavepath *files* "C:\\ACADTemp")
    (vla-put-PrintSpoolerPath *files* "C:\\ACADTemp\\")
    
    you need main customization seen it other day something like below will try to find
    (vla-put-Maincustomization *files* "C:\\ACADTemp\\mymenu.cuix")
    A man who never made mistakes never made anything

  4. #4
    Full Member Keywordkid's Avatar
    Computer Details
    Keywordkid's Computer Details
    Operating System:
    Win 7
    Discipline
    Architectural
    Keywordkid's Discipline Details
    Occupation
    CAD Manager
    Discipline
    Architectural
    Using
    AutoCAD 2012
    Join Date
    Jun 2012
    Location
    London, UK
    Posts
    72

    Default

    Thanks BIGAL,

    I've not had any success yet, but it has given me a clue for further research. Specifically this is what I want to achieve:

    Change the existing Main customization file to:

    C:\ACAD\<loginname>\support\mymenu.cuix

    I currently apply the following support paths using the acaddoc:

    ; Set registry file search paths
    (setenv "SaveFilePath" (strcat "C:\\ACAD\\"(getvar "loginname")))
    (setenv "LogFilePath" (strcat "C:\\ACAD\\"(getvar "loginname")))
    (setenv "ActRecPath" (strcat "C:\\ACAD\\"(getvar "loginname")))
    (setenv "TempDirectory" (strcat "C:\\ACAD\\"(getvar "loginname")))

    This is to circumvent IT security policies that prevent users accessing their autosaves and backups. I'm learning more lisp every day but definately class myself as a beginner. Any further help is definately appreciated.

  5. #5
    Full Member Keywordkid's Avatar
    Computer Details
    Keywordkid's Computer Details
    Operating System:
    Win 7
    Discipline
    Architectural
    Keywordkid's Discipline Details
    Occupation
    CAD Manager
    Discipline
    Architectural
    Using
    AutoCAD 2012
    Join Date
    Jun 2012
    Location
    London, UK
    Posts
    72

    Default

    For anyone else struggling with this problem I located the solution that works for me:

    Code:
     
    (command "Menu" (strcat "c:\\acad\\"(getvar "loginname")"\\support\\mymenu.cuix"))
    The "EnterPrizeMenu" can be set in the same way or using the Setenv method I posted earlier.

    Last edited by Keywordkid; 20th Jun 2012 at 04:50 pm.

  6. #6
    Full Member Keywordkid's Avatar
    Computer Details
    Keywordkid's Computer Details
    Operating System:
    Win 7
    Discipline
    Architectural
    Keywordkid's Discipline Details
    Occupation
    CAD Manager
    Discipline
    Architectural
    Using
    AutoCAD 2012
    Join Date
    Jun 2012
    Location
    London, UK
    Posts
    72

    Default

    "EnterPrizeMenu" should have read as "EnterPriseMenuFile"
    Last edited by Keywordkid; 25th Jun 2012 at 02:35 pm.

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

    Default

    Registered forum members do not see this ad.

    Check this out

    Code:
    (vlax-Dump-Object (vla-get-files  (vla-get-preferences (vlax-get-acad-object))))
    A man who never made mistakes never made anything

Similar Threads

  1. Changing a text height - globally
    By Marc5 in forum AutoCAD General
    Replies: 11
    Last Post: 13th Jan 2011, 04:24 pm
  2. Globally changing colour in LT2010
    By Blackers in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 0
    Last Post: 18th Jun 2010, 12:27 pm
  3. Changing units (globally) on existing drawing
    By SR1 in forum AutoCAD General
    Replies: 4
    Last Post: 8th Jan 2009, 10:18 am
  4. Changing fonts globally?
    By mlockett216 in forum AutoCAD General
    Replies: 2
    Last Post: 27th Dec 2008, 09:12 pm
  5. Changing the dimension globally
    By mrbob2 in forum AutoCAD General
    Replies: 8
    Last Post: 24th Nov 2005, 07:49 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