+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Senior Member Cadologist's Avatar
    Computer Details
    Cadologist's Computer Details
    Operating System:
    Windows 7 Professional
    Computer:
    Hewlett-Packard Z400 Workstation
    Motherboard:
    POS Fisherprice Beta Nukemaster v2.6
    CPU:
    Intel Xeon CPU W3520 @ 2.67Ghz
    RAM:
    12 GB
    Graphics:
    Nvidia Quadro FX 1800
    Primary Storage:
    Three Hamsters, Alumimum Wheel
    Monitor:
    Dual Monitors (24" LG LCD)
    Discipline
    Multi-disciplinary
    Cadologist's Discipline Details
    Occupation
    Regional Technical CAD Lead
    Discipline
    Multi-disciplinary
    Using
    Civil 3D 2011
    Join Date
    Oct 2009
    Location
    Canada
    Posts
    128

    Default Toolbar Button Code: Windows Explorer to Server Folder

    Registered forum members do not see this ad.

    I am trying to find the code that will allow me to add a button to a tool palette that will open up a new session of 'Windows Explorer' to a specific folder.

    I am not talking about opening up the folder for the current drawing, what I want is to give the CAD users in my office a quick shortcut to accessing our standard CAD data (blocks, linetypes, everything company standard for CAD) on our server, via 'Windows Explorer".

    Tried everything, can't seen to get it to work, any ideas?

    Folder path I want to open is S:\CAD\ (S: drive is a common pathing for all employees, ie: our office drive and the CAD is a main folder).

    The coding has to be 'one line', tried a bunch of stuff, double slashes, etc and still nothing.

    I want this specifically to be utilized via a button on a tool palette, not looking for other options like desktop shortcuts and all that.

    Thanks in advance, any help would be appreciated.

  2. #2
    Senior Member Cadologist's Avatar
    Computer Details
    Cadologist's Computer Details
    Operating System:
    Windows 7 Professional
    Computer:
    Hewlett-Packard Z400 Workstation
    Motherboard:
    POS Fisherprice Beta Nukemaster v2.6
    CPU:
    Intel Xeon CPU W3520 @ 2.67Ghz
    RAM:
    12 GB
    Graphics:
    Nvidia Quadro FX 1800
    Primary Storage:
    Three Hamsters, Alumimum Wheel
    Monitor:
    Dual Monitors (24" LG LCD)
    Discipline
    Multi-disciplinary
    Cadologist's Discipline Details
    Occupation
    Regional Technical CAD Lead
    Discipline
    Multi-disciplinary
    Using
    Civil 3D 2011
    Join Date
    Oct 2009
    Location
    Canada
    Posts
    128

    Default

    Sorry, not a toolbar button code, a TOOL PALETTE BUTTON CODE........

  3. #3
    Senior Member Cadologist's Avatar
    Computer Details
    Cadologist's Computer Details
    Operating System:
    Windows 7 Professional
    Computer:
    Hewlett-Packard Z400 Workstation
    Motherboard:
    POS Fisherprice Beta Nukemaster v2.6
    CPU:
    Intel Xeon CPU W3520 @ 2.67Ghz
    RAM:
    12 GB
    Graphics:
    Nvidia Quadro FX 1800
    Primary Storage:
    Three Hamsters, Alumimum Wheel
    Monitor:
    Dual Monitors (24" LG LCD)
    Discipline
    Multi-disciplinary
    Cadologist's Discipline Details
    Occupation
    Regional Technical CAD Lead
    Discipline
    Multi-disciplinary
    Using
    Civil 3D 2011
    Join Date
    Oct 2009
    Location
    Canada
    Posts
    128

    Default

    Wow, so after a couple hours, I post this message only to find the solution a few minutes later, go figure......


    ^C^C_Start S://cad//;

  4. #4
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    4,039

    Default

    Registered forum members do not see this ad.

    FWIW - It's been a long time since I've made macros; going from memory....

    In the CUI Editor add a Command (I'm using FOO for this example):

    Code:
    ^C^C^P(if (not FOO)(load "FOO"));FOO;
    Then Right Click your Tool Palette, and select Customize Commands...

    Navigate to your Command (FOO), and drag it to the Tool Palette. Hit OK.

    Then save this code to FOO.LSP file (or use Notepad, and save with .LSP extension):

    Code:
     
    (defun c:FOO ()
      (princ "\rEXPLORE CAD FOLDER ")
      (startapp (strcat "explorer /n,/e,S:\\cad\\"))
      (princ))
    Note - I know this works find for keyboard shortcuts, revise as needed.

    HTH

    BTW - My other car is a Tardis. LoL
    "Potential has a shelf life." - Margaret Atwood

Similar Threads

  1. Windows explorer
    By SunnyTurtle in forum Hardware & Operating Systems
    Replies: 10
    Last Post: 24th Jul 2011, 11:49 pm
  2. save dwg file to server folder
    By kalai in forum AutoLISP, Visual LISP & DCL
    Replies: 13
    Last Post: 7th Jul 2011, 07:38 am
  3. Replies: 0
    Last Post: 23rd Sep 2010, 03:30 pm
  4. Windows Explorer Freezes
    By grouch19 in forum AutoCAD General
    Replies: 2
    Last Post: 7th Jul 2009, 05:50 am
  5. Toolbar button to switch between windows
    By jg473 in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 2
    Last Post: 5th May 2008, 07:59 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