+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 21
  1. #11
    Senior Member
    Using
    AutoCAD 2009
    Join Date
    May 2008
    Location
    Philadelphia, Pa.
    Posts
    407

    Default

    Registered forum members do not see this ad.

    Hey Zen
    Man, you are right on the button as far as I am concerned.
    Profiles are a great way to handle the scenario that you described.
    I am assuming by pallettes, you mean menus?

    Zen, this may help you out.

    Are you familiar with VBScripting?

    If not, it is very easy; take this code that I posted below, copy it into a new text (.txt) file, then do a saveas, then name the file and save it as a .vbs file.

    After you do that, you will be able to double click the file (script) and it will open ACAD, import the profile that you want active, then it will close ACAD.

    I did not do any code to check if ACAD is already open, I could if you wanted but if your user has ACAD closed and runs this, it will do what you described.

    All you need to do is change the file path and Profname
    Then I would test it (of course) on your machine first.
    I use a profile called "Test" just to try things out.

    If you like it and want something else added, just give me a holler

    Hope it helps

    ML

    Code:
     Dim Acad,Preferences,WshNetwork,Username
     Dim FilePath,Profname
     
     Set Acad = CreateObject("Autocad.Application")
     Set WshNetwork = CreateObject("WScript.Network")
     Set Preferences = Acad.Preferences
     
     Acad.Visible = True
     
     Username = WshNetwork.UserName
     
     FilePath = "C:\Documents and Settings\" & Username & "\My  Documents\TestProf\" 
     Profname = "Test"
     
     Preferences.Profiles.ImportProfile Profname, FilePath & Profname & ".arg" , True
     
    'MsgBox "The Profile " & Profname & " has been sucessfully imported", vbInformation
     
     Acad.Quit

  2. #12
    Senior Member ZenCad1960's Avatar
    Computer Details
    ZenCad1960's Computer Details
    Operating System:
    XP
    Computer:
    Dell Precision M6300
    Motherboard:
    Dell 0JM680
    CPU:
    Intel(R) Core(TM)2 Duo CPU T7800 @ 2.60GHz
    RAM:
    4 gig
    Graphics:
    NVDIA Quadro FX 1600M 512 MB
    Primary Storage:
    120 Gig
    Monitor:
    Dual Dell 22" Widescreen
    Using
    LDD 2007
    Join Date
    Jul 2007
    Location
    Henderson, Nevada
    Posts
    135

    Default Sweet

    That is an excellent idea. When I mentioned Palettes, I meant Tool Palettes. [CTRL]3. We have put all our standard text by scale along with the matching dimensions on a palette tab, Line work alread set to the correct layer, color and linetype broken out in the different areas we use like existing boundary lines, ie ROW, PL, CL, easements etc. We have title blocks with attributes on a palettes so the user only has to drag and drop and bam, there it is. We have grouped the tabs in each palette so it appears there are many many palettes when in fact it is one large one. Each client gets their own palette structure.

    The palettes are controlled by the profiles. When everything is set for the client, just path the "Tool Palette File Locations" to the clients standards folder on your network in the "Options" Dialog Box in the "Files" Tab. Then just save the Profile as the Clients name and there you go.

    Try it. I am going to try your script and see if I can't get the script as part of each users logon script so each morning it refreshes the profiles.

    Thanks so much for that!

    Zen

  3. #13
    Senior Member ZenCad1960's Avatar
    Computer Details
    ZenCad1960's Computer Details
    Operating System:
    XP
    Computer:
    Dell Precision M6300
    Motherboard:
    Dell 0JM680
    CPU:
    Intel(R) Core(TM)2 Duo CPU T7800 @ 2.60GHz
    RAM:
    4 gig
    Graphics:
    NVDIA Quadro FX 1600M 512 MB
    Primary Storage:
    120 Gig
    Monitor:
    Dual Dell 22" Widescreen
    Using
    LDD 2007
    Join Date
    Jul 2007
    Location
    Henderson, Nevada
    Posts
    135

    Default

    Yeah I think it would be excellent if it would test to see if AutoCAD was open. Also we tend to run two sessions at a time as well. Is there a what to check if two sessions are running and modify both sessions?

  4. #14
    Senior Member ZenCad1960's Avatar
    Computer Details
    ZenCad1960's Computer Details
    Operating System:
    XP
    Computer:
    Dell Precision M6300
    Motherboard:
    Dell 0JM680
    CPU:
    Intel(R) Core(TM)2 Duo CPU T7800 @ 2.60GHz
    RAM:
    4 gig
    Graphics:
    NVDIA Quadro FX 1600M 512 MB
    Primary Storage:
    120 Gig
    Monitor:
    Dual Dell 22" Widescreen
    Using
    LDD 2007
    Join Date
    Jul 2007
    Location
    Henderson, Nevada
    Posts
    135

    Default

    Also, how do you set a perticular Profile current using VBA or VB Script?

  5. #15
    Senior Member
    Using
    AutoCAD 2009
    Join Date
    May 2008
    Location
    Philadelphia, Pa.
    Posts
    407

    Default

    Hi Zen
    I'm sorry, I somehow missed your reply.
    I changed e-mail addresses, so I may not have seen it.

    So, is that script working for you?
    I'm glad that you like that idea

    OK, you have few questions here....

    I have a nice little VBA Project that I created, it will return the profiles on your machine in a listbox, then which ever one you click on, it will set that profile current. It is really good if (like me) you switch profiles a lot.

    I can send that to you if you'd like? Also, I can incorporate that into a VBScript if you'd like?

    You run two sessions of Vaniila CAD at the same time, using the same profiles?

    Checking to see if ACAD is open should be easy.

    Also, check this out ZEN

    I have a script that will write your paths directly to the registry via script. It is very cool but the key here is to set which profile you want to update to active first.

    You would also need to tweak it to your paths..

    So, there are a number of ways to skim the cat; if you tell me what you'd like, I can hook it up.

    In this case, it would be cool to externally set the profile you want to update as active, then externally, with a script, update the paths in the registry.

    So, I will give you that VBA project that I did for profiles.
    Let me know if you have any querstions.
    If you want to work on that script, let me know

    I should be able to turn it over fairly quickly

    Mark

  6. #16
    Senior Member
    Using
    AutoCAD 2009
    Join Date
    May 2008
    Location
    Philadelphia, Pa.
    Posts
    407

    Default

    Zen,
    I tried attaching that VBA Project but I don't think it worked.

    Let me know if there is another was I can get it (.dvb file) to you

    Mark

  7. #17
    Senior Member ZenCad1960's Avatar
    Computer Details
    ZenCad1960's Computer Details
    Operating System:
    XP
    Computer:
    Dell Precision M6300
    Motherboard:
    Dell 0JM680
    CPU:
    Intel(R) Core(TM)2 Duo CPU T7800 @ 2.60GHz
    RAM:
    4 gig
    Graphics:
    NVDIA Quadro FX 1600M 512 MB
    Primary Storage:
    120 Gig
    Monitor:
    Dual Dell 22" Widescreen
    Using
    LDD 2007
    Join Date
    Jul 2007
    Location
    Henderson, Nevada
    Posts
    135

    Default

    Quote Originally Posted by ML0940 View Post
    Zen,
    I tried attaching that VBA Project but I don't think it worked.

    Let me know if there is another was I can get it (.dvb file) to you

    Mark
    Mark - thanks for the help on this. I sent you a provate messate with my email contact address. I have some ideas that we can collaborate on and who knows where that might go.

    Thanks and I look forward to talking with you.

    Zen

  8. #18
    Senior Member
    Using
    AutoCAD 2009
    Join Date
    May 2008
    Location
    Philadelphia, Pa.
    Posts
    407

    Default

    Hi Zen

    I sent you an e-mail with the project
    I would have shared it so that others can use it but it doesn't look possible

    That is ok; if others are interested, they will ask, right?
    M

  9. #19
    Forum Deity NBC's Avatar
    Using
    AutoCAD 2009
    Join Date
    Aug 2007
    Location
    Manchester, UK
    Posts
    2,109

    Default

    I wouldn't mind seeing what you have come up with, please.
    Life's constantly changing - keep up or get left behind

  10. #20
    Full Member caddcop's Avatar
    Computer Details
    caddcop's Computer Details
    Operating System:
    WinXP
    Computer:
    Lenovo ThinkPad Laptop - Dual Screens on Docking Station
    Monitor:
    Dell and Viewsonic 22' Widescreens
    Discipline
    Civil
    caddcop's Discipline Details
    Occupation
    CADD Manager - Civil/Survey
    Discipline
    Civil
    Details
    Working with Land Desktop 2008 and 2009, Civil 3D 2009, 2010, 2011, 2012 & 2013
    Using
    Land Desktop 2009
    Join Date
    Sep 2009
    Location
    Maryland (DC Suburbs)
    Posts
    94

    Default

    Registered forum members do not see this ad.

    I too would like to see some example arg files. I am trying to setup a network "workspace" with some luck. Like mentioned, we have multiple clients so I'll need multiple profiles to point to different client based files and folders.

    I've been doing this for years with that "other" CAD software and understand its inner workings very well. It has been a steep learning curve trying to figure out the equivalent on this side of the CADD world.

Similar Threads

  1. Transfering AutoCAD 2005 Profiles to autoCAD 2008?
    By dibs786 in forum AutoCAD General
    Replies: 2
    Last Post: 8th Jan 2008, 11:58 am
  2. Stopping Autocad from accessing network...
    By Gar in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 25th Jul 2007, 12:46 pm
  3. The Future of AutoCAD Profiles Survey
    By Between the Lines in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 22nd Nov 2006, 11:00 am
  4. AutoCAD LT Network License
    By wehaveaproblem in forum Software & Licensing
    Replies: 0
    Last Post: 20th Sep 2006, 07:00 pm
  5. Where does AutoCad save profiles?
    By Toffy in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 27th Jan 2005, 03:24 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