Author Topic: Create Open Drwaing folder marco  (Read 4990 times)

0 Members and 1 Guest are viewing this topic.

Sam

  • Bull Frog
  • Posts: 201
Create Open Drwaing folder marco
« on: April 14, 2011, 04:36:39 AM »
Dear All,
Create Open Drawing folder Marco
any better way writting this Marco
Quote
^C^C(if (= 1 (GETVAR "dwgtitled")) (startapp "explorer" (strcat "/n,/e, " (getvar "dwgprefix"))) (alert "please save the drawing"));
Every time we waste electricity, we put our planet's future in the dark. Let's turn around our attiude and start saving power and our planet, before it's too late
http://www.theswamp.org/donate.html

M-dub

  • Guest
Re: Create Open Drwaing folder marco
« Reply #1 on: April 14, 2011, 07:51:16 AM »
I'm not completely sure what Create Open Drawing Folder means, but this macro opens Windows Explorer to the folder in which the current drawing resides.

^C^C(COMMAND ".BROWSER" (GETVAR "DWGPREFIX"))

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Create Open Drwaing folder marco
« Reply #2 on: April 14, 2011, 08:20:01 AM »
I'm not completely sure what Create Open Drawing Folder means, but this macro opens Windows Explorer to the folder in which the current drawing resides.

^C^C(COMMAND ".BROWSER" (GETVAR "DWGPREFIX"))
if Internet Explorer is the default browser.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

M-dub

  • Guest
Re: Create Open Drwaing folder marco
« Reply #3 on: April 14, 2011, 08:33:57 AM »
oops. Thanks for the fication, Clari.  :)

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Create Open Drwaing folder marco
« Reply #4 on: April 14, 2011, 08:35:31 AM »
oops. Thanks for the fication, Clari.  :)
time, Any. :)
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Create Open Drwaing folder marco
« Reply #5 on: April 14, 2011, 08:39:10 AM »

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Create Open Drwaing folder marco
« Reply #6 on: April 14, 2011, 10:42:10 AM »
You really have done a nice job with your web site Lee. 8-)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Create Open Drwaing folder marco
« Reply #7 on: April 14, 2011, 10:51:45 AM »
You really have done a nice job with your web site Lee. 8-)

Thanks Alan  :-)

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: Create Open Drwaing folder marco
« Reply #8 on: April 14, 2011, 11:25:00 AM »
Not sure EXACTLY what you're after, but I use this.
I will open Windows Explorer to the current drawing directory and highlight the opened drawing.


(STARTAPP (strcat "EXPLORER /select, " (getvar "dwgprefix") (getvar "dwgname")", /e"))
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Create Open Drwaing folder marco
« Reply #9 on: April 14, 2011, 11:28:10 AM »
Not sure EXACTLY what you're after, but I use this.
I will open Windows Explorer to the current drawing directory and highlight the opened drawing.


(STARTAPP (strcat "EXPLORER /select, " (getvar "dwgprefix") (getvar "dwgname")", /e"))
Damn, that's cool! I just use (STARTAPP "EXPLORER" (GETVAR "DWGPREFIX")), but think I'll steal yours.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: Create Open Drwaing folder marco
« Reply #10 on: April 14, 2011, 11:31:48 AM »
Not sure EXACTLY what you're after, but I use this.
I will open Windows Explorer to the current drawing directory and highlight the opened drawing.


(STARTAPP (strcat "EXPLORER /select, " (getvar "dwgprefix") (getvar "dwgname")", /e"))
Damn, that's cool! I just use (STARTAPP "EXPLORER" (GETVAR "DWGPREFIX")), but think I'll steal yours.
Uhhh.... yeah... it.... ummm... doesn't really do that.  It, uhhh... reformats your hard drive.  Yeah... that's it.  And it.... it has sex with your wife when you're not home.    Yeah, that's the ticket.
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Create Open Drwaing folder marco
« Reply #11 on: April 14, 2011, 11:32:27 AM »
Not sure EXACTLY what you're after, but I use this.
I will open Windows Explorer to the current drawing directory and highlight the opened drawing.


(STARTAPP (strcat "EXPLORER /select, " (getvar "dwgprefix") (getvar "dwgname")", /e"))
Damn, that's cool! I just use (STARTAPP "EXPLORER" (GETVAR "DWGPREFIX")), but think I'll steal yours.
Uhhh.... yeah... it.... ummm... doesn't really do that.  It, uhhh... reformats your hard drive.  Yeah... that's it.  And it.... it has sex with your wife when you're not home.    Yeah, that's the ticket.
even better!
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Create Open Drwaing folder marco
« Reply #12 on: April 14, 2011, 12:18:52 PM »
Not sure EXACTLY what you're after, but I use this.
I will open Windows Explorer to the current drawing directory and highlight the opened drawing.

(STARTAPP (strcat "EXPLORER /select, " (getvar "dwgprefix") (getvar "dwgname")", /e"))
What is the benefit of highlighting the file that you have open?

Where can I find info on the various switches that I could use?
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Create Open Drwaing folder marco
« Reply #13 on: April 14, 2011, 12:23:32 PM »
Where can I find info on the various switches that I could use?

http://support.microsoft.com/kb/130510

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Create Open Drwaing folder marco
« Reply #14 on: April 14, 2011, 12:44:40 PM »
Thanks Lee
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans