Author Topic: Macro Commands  (Read 21422 times)

0 Members and 1 Guest are viewing this topic.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Macro Commands
« Reply #105 on: July 01, 2004, 04:21:37 PM »
Are you using LT?, you might try this ...

Code: [Select]

osmode 64;copy;\\@


You can also use select to pick an object and lastpoint to retrieve the point but there is no good way of moving that to the command that I know of.

Code: [Select]

osmode 64;select;\\$(getvar, lastpoint)
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

hyposmurf

  • Guest
Macro Commands
« Reply #106 on: March 14, 2005, 06:20:48 PM »
Use this to set my text/dim layer current when I use my custom MTEXT button.

^C^C-LAYER;S;SML_TEXT;;MTEXT

Use this to set my text/dim layer current when I use my custom QLEADER button.

^C^C-LAYER;S;SML_TEXT;;QLEADER

hudster

  • Gator
  • Posts: 2848
Macro Commands
« Reply #107 on: April 22, 2005, 04:01:33 PM »
found this one to toggle between model space and paper space using a button

Code: [Select]
(setvar "tilemode" (- 1 (getvar "tilemode")))

I though it was kinda neat
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

nivuahc

  • Guest
Macro Commands
« Reply #108 on: April 22, 2005, 04:10:50 PM »
My two favorites:

Code: [Select]
(startapp "C:/windows/explorer.exe" (getvar "DWGPREFIX"))

Opens Explorer in the directory of the drawing you're working on


Code: [Select]
(startapp "C:/Program Files/Mozilla Firefox/firefox.exe" "http://www.theswamp.org/")

This one, I think, doesn't need any explanation.  8)