Jump to content
Developer Wiki and Function Reference Links ×

Retrieve Current Tool ID/Name?


brudgers

Recommended Posts

I'm trying to modify one of my kludge tools.

I would like it to restore the previous tool.

After posting I tried push and pop, but since my kludge tool has already been called at that point the previous tool was not restored.

Essentially,

Proceedure s as vectorworks tool;

Begin

Pushattrs;

Do(something);

Popattrs;

end;

Run(s);

was not making the previous tool active.

What I'm looking for is

Proceedure s as vectorworks tool;

Begin

Get(previous tool);

Do(something);

Restore (previous tool);

end;

Run(s);

Link to comment

I realized the problem.

Information regarding the previous tool/command is likely to be available on the undo stack, but I be surprised if that information is accessible.

Thanks anyway.

As for Tools and Commands:

Client 1: Excuse me.

Mr. Wiggin: Yes?

Client 1: Did you say 'menu'?

Mr. Wiggin: Vectorworks menu, yes.

Client 2: Do I take it that you are proposing a text based interface?

Mr. Wiggin: ...Does that not fit in with your plans?

Client 1: Not really. We asked for a simple block of icons.

Mr. Wiggin: Oh. I hadn't fully divined your attitude towards application usability. You see I mainly design slaughter houses.

Clients: Ah.

Mr. Wiggin: Pity.

Clients: Yes.

Edited by brudgers
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...