| Author |
Message |
ScoJoh
Joined: 12 Jul 2010
Posts: 8
|
Posted:
Wed Jul 14, 2010 8:29 pm Post subject:
Layout Macro... |
|
|
CADLT 2009...
Had a button that in CAD 2004 we'd click on and it would run a macro.
^C^C_LAYOUT;_T;
Running this would pop up the browse dialog box and let the user select on of a couple different template files we use that contain various paperspace layouts. They'd select file, and then get the dialog box showing them the layouts contained in that file etc.
Now in 2009, it all stays at the command line for some reason. It simply asks for the template file rather than brining up a dialog box.
now mind you, if I type this all manually, without a macro, it works just like it did in 2004. Pops up a browse box etc etc.
So..... why would the macro not do the same? Any ideas?
|
|
| Back to top |
|
 |
CarlB
Joined: 27 Sep 2005
Posts: 121
|
Posted:
Thu Jul 15, 2010 2:08 am Post subject:
|
|
|
I don't know why it would work diferently in 2009..
One thing that could cause that is if FILEDIA was set to 0, but that would cause other problems.
One way around it is to type a tilde when requested for file name, should then bring up a DB-, so maybe:
^C^C_LAYOUT;_T;~; |
|
| Back to top |
|
 |
ScoJoh
Joined: 12 Jul 2010
Posts: 8
|
Posted:
Thu Jul 15, 2010 12:53 pm Post subject:
|
|
|
Dude!!! You're totally my hero right now!!!
Tilde works like a charm!!!!
BooYaa!!!! |
|
| Back to top |
|
 |
ScoJoh
Joined: 12 Jul 2010
Posts: 8
|
Posted:
Thu Jul 15, 2010 1:05 pm Post subject:
|
|
|
... ok spoke too soon!
The ~; does bring up the DB to select a file but then it goes right back to the command line to type in the name of the layout in the selected file to insert. I tried another ~; but that ends up inserting EVERY page layout in that file! (And there are more than a few!!!).
Is there another little character I can use to push up the layout select window?
If so is there also a reference somewhere that lists all those little tidbits so I don't have to keep bothering people for info? |
|
| Back to top |
|
 |
CarlB
Joined: 27 Sep 2005
Posts: 121
|
Posted:
Thu Jul 15, 2010 3:57 pm Post subject:
|
|
|
OK we didn't quite solve it..
Since it's not FILEDIA (or you wouldn't get the DB when issued at the command line), maybe there was some change in 2009.
There wasn't some new command introduced like "ddlayout" was there (thinking along the lines of dducs..)?
Don't know of a list of obscure information like that, I just picked it up in a forum like this.  |
|
| Back to top |
|
 |
ScoJoh
Joined: 12 Jul 2010
Posts: 8
|
Posted:
Thu Jul 15, 2010 4:49 pm Post subject:
|
|
|
Seems you're right!!
Only thing I can find on importing layouts is via QVLayout. Which is only a button at the lower right.
So rather than having a button... they'll actually have to navigate a menu or two....
They'll probably want a raise.... they'll actually have think!!! What ever shall we do!!
Thanks! |
|
| Back to top |
|
 |
|
|
|
|