PDA

View Full Version : Need help with Palette Macro


JeremiahM
2005-02-03, 12:18 AM
I have a tool from a 3rd party app that is stored in their ARX file. It has a bunch of command line options that I would like to automate.

Here is the command line syntax:

Command: GEOXLABEL
;(PickBox changes to select object to label)
Please Specify a Point for Label ;(pick point on screen)
Command:
Command:
Command:
Command:
Specify rotation angle or [Move] <0>:
Press ENTER to end or [Leader]: L
Press ENTER for color by Layer, W for White, R for Red, Y for Yellow, G for
Green, C for Cyan, B for Blue, M for Magenta : W
Specify first point:
Specify next point or [Box/Under first line/End] <End>: U

My problem is having it pause for my selection and pick and then resuming with what I need my options to be 0 L W, then pausing for the point to start the leader and continuing with U followed by an enter to end the command.

Can it be done?

Thanks,

Jeremiah

kennet.sjoberg
2005-02-03, 12:37 AM
Probably yes, ask the author to change the code.

: ) Happy Computing !

kennet

JeremiahM
2005-02-03, 12:40 AM
That was my next call...

tyshofner
2005-02-04, 01:04 AM
I assume you are trying to use a diesel macro, if so the "\" is a pause symbol.

So your macro syntax would look something like this:

^C^Cgeoxlabel;\\0;L;W;\U;

If you just paste this line onto your palette button it should do the trick.

Ty

JeremiahM
2005-02-07, 08:20 PM
You are awsome, one oddity though:

For some reason it does not like the final \U; the result is it underlining my text correctly but it disregards the leader line and arrow to the object. The underline is a LEADER object as it should be.

If i remove the \U; it will let me manually finish the command correctly.

Any ideas?

Thanks agian,

Jeremiah

tyshofner
2005-02-09, 11:07 PM
Do you have to press "enter" again to exit the command after entering "U"?

If so you should just have to add another enter ";" symbol at the end of the macro.

So it would be like this:

^C^Cgeoxlabel;\\0;L;W;\U;;

Notice two semi-colons at the end of this macro, one for the "enter" after the "U", and one for "enter" to end the command. I think this should work as it sounds like the command just isn't being finished by the macro. You could also try this:

^C^Cgeoxlabel;\\0;L;W;\U;E;

On this one I put the "E" at the end of the macro so that it issues the "End" option of your command.

There is not much difference between the two, except that the first macro uses "enter" (";") to except the default option of the command which is "End" and the second macro issues the "End" command directly.

Ty

JeremiahM
2005-02-09, 11:37 PM
Ty,

It still responds the same , but adding the ";" it restarts the command and addingE; issues the erase command.

Using the basic command once I type U <enter> the command finishes.

Thanks again, this is really close.

Jeremiah

tyshofner
2005-02-15, 09:21 PM
Well it must be something in the coding of the command. Without being able to use the command it's hard to tell you what to do. I would just try playing with the last part of the macro, the "\U;". You could try leaving off the last enter ";" and than just hit enter yourself and see what that does.

Ty