Can't get custom palette command to work

Can't get custom palette command to work

Julio_Soto
Advisor Advisor
650 Views
5 Replies
Message 1 of 6

Can't get custom palette command to work

Julio_Soto
Advisor
Advisor

I don't really understand what AS is doing here for these commands. It doesn't look like a typical ACAD macro.  I want a command that will mark parts connected in the shop and select them in one shot. I saw some examples in the pinned thread above but I can't get them to work. They will run the first part of the command then stop.

 

this is my macro

^C^C_AstM4SwitchReprMode_ MAINSTRUCTURE _AstM4CommSelectMarkedObjects

 

This only gets as far as marking parts connected in the shop, but it won't execute the selection part.  What am I missing here?

0 Likes
651 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

Is your command in Tool palette (XML) or in Ribbon (command macro)? The lokation make the difference for the syntax.

 

Command macro partial example: ^C^C_ AstM4SwitchReprMode;MAINSTRUCTURE;

 

Your example is the syntax in XML for Tool palette

 

 

0 Likes
Message 3 of 6

Anonymous
Not applicable
0 Likes
Message 4 of 6

Julio_Soto
Advisor
Advisor

I am trying to do it in the Xml file 

0 Likes
Message 5 of 6

Anonymous
Not applicable

Then look at the syntaxs here: AstPaletteData_User.xml

 

C:\ProgramData\Autodesk\Advance Steel xxxx\xxx\Steel\Support\Toolbars

0 Likes
Message 6 of 6

crydee-AG1
Mentor
Mentor

HI,

 

I would always use semi-colons ; instead of spaces. The semi-colon is the equivalent of pressing Return on the keyboard. You need one (or a space) at the end of your string too or the select command is never actually entered.

Aleck Giles, Structures Consultant, Graitec
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

LinkedIn

Autodesk Certified Instructor - Gold

0 Likes