Jump to content

Launching Directory Opus layout using macro or LISP?


Recommended Posts

Posted

Hey guys,

 

I'm just wondering if anyone is familiar with the explorer replacement Directory Opus, and if anyone knows how to launch Directory Opus to a specific predefined layout from within AutoCAD?

 

I am able to use STARTAPP to launch DOpus to a certain directory, but one of the beauties of DOpus is it's ability to browse windows in dual panes. Our jobs at work all have 2 directories, working directory in T drive and correspondence in G drive. You can preset each pane to a specific directory via DOpus' layout feature. So I can create a layout for job number XXXX and by activating this layout, each pane within DOpus will navigate to a certain directory location.

 

I would like to be able to enter a command or select from a menu within AutoCAD a link which will open DOpus to a certain layout with the corresponding directories in each pane.

 

Hopefully that made enough sense and hopefully someone knows what I'm going on about.

 

Here is a link to a thread iI started over at the Directory Opus forums, for anyone interested. http://resource.dopus.com/viewtopic.php?f=3&t=21155&sid=bf91f4489b253727f45f4c5771ac409c

 

Thanks for any help, I look forward to hearing back.

Posted

You can try this....this works for windows explorer. Perhaps it would just need to be modified slightly. Would need to install DOpus to test, and I'm not going to do that but this works for windows, opening the current dwgs directory.

(Defun c:foo ()
     (startapp
           (strcat "explorer /select, "
                   (getvar "dwgprefix")
                   (getvar "dwgname")
                   ", /e"))
)

Posted

Hi Bhull1985,

 

Thanks a lot for the reply. That is a handy piece of code. I do have a few similar routines which I use all the time, way easier to hit a few keys than clicking and navigating through Windows Explorer.

 

On the topic of launching Directory Opus to multiple directories, I got some advice at the DOpus forums and managed to get the macro working exactly how I wanted it to.

 

^C^C^P(startapp "C:/Program Files/GPSoftware/Directory Opus/dopusrt.exe /cmd 1356")

 

... is the code. It relies on targeting a certain DOpus executable with greater abilities to launch custom commands at DOpus startup.

 

Thanks again Bhull1985.

Posted

It also relies on the (startapp) function.

Great to hear you found a solution!

Posted

Like others not quite sure about DOpus but you can have desktop icons that open a directory rather than just plain explorer at top level. Or like above

 

(startapp "explorer /select, P:\autodesk\lisp") ; open a particular directory

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...