Page 2 of 3

Change Dim Style

PostPosted: Thu Jul 02, 2009 10:23 am
by Roger D
I'm thinking maybe there is a program anomaly occurring.

Looking at my dimstyles, I remembered a discussion before, which made me change my Alt-D keyboard to look like
Code: Select allD^·^È^:^F8^F1^S2^F1^Lin1Lin2On$^S0^¸^É

So that Line1 & 2 would always be on.
It works in loading the dimstyle at that level.
Maybe it's just down in the change dimension "To Style" does not accept named entry via a macro.
?Mark, David? you listening? :?

Re: Toolbar ?'s

PostPosted: Wed Jul 20, 2011 6:54 pm
by joshhuggins
A little bump a boo to this olddie. Would really like to get this working. Would make importing DWG files a lot easier to be able to run this as part of our import DWG cleanup toolbar code. I think Roger is right in that it seems to be the dialog is not setup to work with the macros.

I am trying to make a toolbar button to preform the following string of menu commands. Change, Dimensions, To Style,(dialog:stylename.dimstyle), Dim Style Off, Dim Style On (AutoEnters DimStyle Menu), Increment Off, Exit Dim Style Menu, Set Selection to Area. Below is my code.
Code: Select all^;^F0^S9^S5^1-8.dimstyle$^F9^F9^F9^S0^F3^

Door Swing Style Code

PostPosted: Tue Aug 23, 2011 11:56 am
by joshhuggins
Is there a code to set the 2D door value for Match Door on/off?

:idea: Even if you have F5 Match Door toggled on and the F6 Swing Color option disapears, you can still hit F6 and set the color option. 8)

Context Insert Symbol toolbar

PostPosted: Tue Sep 06, 2011 5:59 pm
by joshhuggins
:?: Is there a way to set a context toolbar while in the insert symbol menu?

Re: Toolbar ?'s

PostPosted: Fri Jan 17, 2014 7:29 pm
by joshhuggins
:?: Are there extended codes to set the state for Curves, Polyline, Voids, Create New on/off? If not, could we got some please?

Also the http://www.datacad.com/ddn/extended_cha ... codes.html list is missing the following items,

1071 : KnockOut for Curves On
1072 : KnockOut for Curves Off
1073 : KnockOut Border for Curves On
1074 : KnockOut Border for Curves Off
1075 : KnockOut for Polygons and Slabs On
1076 : KnockOut for Polygons and Slabs Off
1077 : KnockOut Border for Polygons and Slabs On
1078 : KnockOut Border for Polygons and Slabs Off

and has this message at the bottom of the page.

[an error occurred while processing this directive]

Re: Toolbar ?'s

PostPosted: Sat Jan 18, 2014 1:00 pm
by Mark F. Madura
Thanks Josh. I've added the missing codes and the error at the bottom of the page is related to a URL/Path issue for the footer (ddn.datacad.com versus www.datacad.com/ddn/).

Re: Toolbar ?'s

PostPosted: Thu Sep 11, 2014 4:13 pm
by joshhuggins
Is there a code to set the state of the 2D doors, Swing Style, Match Door? Trying to set the color Trying to set the status via a macro but gets hung up if Match Door is already on. If there is no code I guess I can set it in the default drawings and will just have to manually set in old drawings.

Edit: Nevermind on setting the color as it still sets the color at F6 even if it's set to Match Door. Still need the code to toggle off Match Door if it's on if possible. Thanks.

Re: Toolbar ?'s

PostPosted: Thu Sep 11, 2014 6:22 pm
by David A. Giesselman
joshhuggins wrote:Is there a code to set the state of the 2D doors, Swing Style, Match Door? Trying to set the color Trying to set the status via a macro but gets hung up if Match Door is already on. If there is no code I guess I can set it in the default drawings and will just have to manually set in old drawings.

Edit: Nevermind on setting the color as it still sets the color at F6 even if it's set to Match Door. Still need the code to toggle off Match Door if it's on if possible. Thanks.

Added to my list.

Dave

Re: Toolbar ?'s

PostPosted: Tue Sep 16, 2014 2:00 pm
by joshhuggins
David A. Giesselman wrote:Added to my list.
Dave


Thanks Dave.

Another question for ya'll, is there a way to get the B= toolbar code to open the Symbol Browser's Folder Browse dialog box to a certain location vs. loading that location? Wanted to open the browse dialog at a specific folder and allow the user to select from the folders under it.

Toolbar DropDownCount=

PostPosted: Thu Nov 13, 2014 6:28 pm
by joshhuggins
I have started setting the DropDownCount= to a large number like 60 to avoid me forgetting to update the number when I add new buttons. Any reason I shouldn't?

Loop/restart a macro? Refresh display?

PostPosted: Thu Nov 20, 2014 7:52 pm
by joshhuggins
Is there a command I could use in a toolbar macro to loop/restart the macro?

How about a code to refresh the display?

Re: Toolbar ?'s

PostPosted: Fri Nov 21, 2014 9:16 am
by Roger D
to restart a command aliais
0169 © call a command line alias

to refresh yourself
0085 U Regenerate Display List or
0117 u Regenerate Display List

Re: Toolbar ?'s

PostPosted: Fri Nov 21, 2014 12:53 pm
by joshhuggins
O.K. I think I could maybe use a command alias call and clearing the stack in between to get me where I want to go with this one. Will have to play with it a bit to see. So where did you get the info for 0169? It's not defined on the online Character Code list. Wish that list could get updated with everything that is available (hint hint :wink: )

As for the refresh, I was wanting to do a refresh rather than a regen to keep things snappy. I am getting a cursor ghost at one point in my macro and thought a refresh would be nice to clear it up.

Thanks Roger!

Re: Toolbar ?'s

PostPosted: Fri Nov 21, 2014 1:28 pm
by Roger D
p45 of Reference Manual
(Pro) Keyboard Macros and Nested Aliases
Keyboard macro sequences used in (Alt) + (Key) combinations, toolbars, or command line aliases can include up to 1,024 commands. ^F1, or ^Enter this line of text$, and ^12.5$ each equal one command, so there is essentially no limit to the number of keystrokes per macro string.
You can use the PAUSE character (Alt) + (0170) "ª" when defining a keyboard macro string. Inserting this character after a carat "^ª" causes the macro sequence to halt until you click or type. If the pause character is followed by text (i.e., "^ªThis is a comment"), the text will be displayed in DataCAD as a prompt. You may not use the dollar sign ($) character in comment strings.
You can call a command line alias from a keyboard, toolbar, or command line alias macro sequence, allowing you to chain together existing aliases by name. To call a command line alias by name, precede the command name with the special character (Alt) + (0169) "©". For example, (B^;^F7^ªSelect entity to erase^©cp) calls the "cp" alias after going to the Erase menu and waiting for one input.

I've requested through Mark Toce that the file get updated. I keep my own copy in word so I can update while beta versions are adding new codes.

Suppress macro toolbar with no comments?

PostPosted: Tue Jul 14, 2015 5:12 pm
by joshhuggins
Is there a way to suppress the display of the comment toolbar for a specific pause in a toolbar macro? I know we can use Suppress Macro Hint Toolbar= to suppress it all the time, but would like to suppress it just a few times in a macro I am making. If not, could the Macro toolbar be auto suppressed if there is no comment with a pause instead of displaying the toolbar with the No Comment message?